988 Posted Topics

Member Avatar for Mr_Grieves

Have you tried the module psyco, a JIT compiler for i386 machines? It compiles to i386 code directly rather than bytecode virtual code. Here is a typical example, I think vegaseat posted that somewhere: [code=python]# time a function using time.time() and a decorator # uses Psyco JIT i386 compiler to …

Member Avatar for Stefano Mtangoo
1
94
Member Avatar for Dave Sinkula
Member Avatar for lllllIllIlllI

The problem is that a lot of those modules you are talking about are freeware and as such a labor of love! Love is just a little slower than greed! Talking about labor of love, here is one beginning Python tutorial that has already been rewritten for Python30: [url]http://www.swaroopch.com/notes/Python_en:Table_of_Contents[/url]

Member Avatar for Stefano Mtangoo
0
117
Member Avatar for elvenstruggle

You can use module pygame in your program and play MP3 music files without having to create a GUI window: [code]# play a MP3 music file using module pygame # (does not create a GUI frame in this case) # pygame is free from: http://www.pygame.org/ # ene import pygame def …

Member Avatar for Ene Uran
0
1K
Member Avatar for The Dude
Member Avatar for The Dude

Right now I am listening to some Queen on [url]http://www.pandora.com/[/url]

Member Avatar for Jen0608
0
129
Member Avatar for Lardmeister

Actually, the guy in the flat next to mine plays the accordion. He is a member of a small Mexican band here in LA. He is darn good, so is his band.

Member Avatar for ddanbe
0
478
Member Avatar for marketingworld
Member Avatar for mrboolf
1
178
Member Avatar for sneekula

Don't you folks listen to McCain? The American economy is fundamentally strong!

Member Avatar for GrimJack
0
369
Member Avatar for Awaivadrailla

The problem with socialism is that it does't protect you from financial institutions stealing your money.

Member Avatar for jbennet
0
166
Member Avatar for allena

Well, Los Angeles is home for me, love Long Beach. On a clear day in LA you can almost see half a mile! California girls are hip!

Member Avatar for Vladimirr
0
213
Member Avatar for Lardmeister

Well Tammy Faye Bakker is not alive any more, maybe all those dead voters can vote for her. However, perpetual sourpuss Ralph Nader is very much alive, and he could play the usual diversion. He likes to impeach Dick and Bush. If all the folks that hate Bush would vote …

Member Avatar for jbennet
0
3K
Member Avatar for Lardmeister
Member Avatar for The Dude

Oh sweet Jesus, I had one too many beers. I read "Global Warning" and actually looked at this! I am sorry!

Member Avatar for Dave Sinkula
0
973
Member Avatar for The Dude

[QUOTE=bumsfeld;711156]Most 'toy guns' that children shoot are in their video games. Much more realistic since much blood, brain matter, bones and guts are visually spilled. Even some nations' military are training their soldiers on video games now.[/QUOTE]-- and if they don't have a toy gun or video game, they see …

Member Avatar for hughv
0
277
Member Avatar for bvrclvr1
Member Avatar for The Dude

You Are 40% British You're about as British as a half hearted Anglophile... in other words, a piss poor Brit. If you are indeed from Britain, you probably consider yourself a European more than anything else. If you're trying to pass for a Brit, you're going to have to try …

Member Avatar for Obeledeveloper
0
138
Member Avatar for GrimJack

[QUOTE=vmanes;729659]That dress is fugly! Even on the model it's dreadful.[/QUOTE]Is it the dress or is it Obama you hate? Well, Obama will be around for a while, so you better just drink your feelings into the ground!

Member Avatar for christina>you
0
192
Member Avatar for OutOfReach
Member Avatar for Ancient Dragon
Member Avatar for steven woodman

Just saw this in the news: Denmark's parliament on Monday approved the construction of a 400 megawatt (MW) offshore wind turbine park. The park will generate enough electricty to power 400 000 Danish homes. Denmark is home to Vestas, the world's biggest supplier of wind turbines.

Member Avatar for sneekula
0
2K
Member Avatar for sneekula

Here are a few bitter-sweet quotes by Lyndon B. Johnson, as he slowly got suckered into the Vietnam war: [QUOTE]We are not about to send American boys 9 or 10 thousand miles away from home to do what Asian boys ought to be doing for themselves. Just like the Alamo, …

Member Avatar for Ene Uran
1
498
Member Avatar for sneekula

This is from my super Republican Uncle: In Dick Chainy's America we would only have two TV channels. Channel One would be Fox News, and on Channel Two he would personally appear and tell you to quickly return the Channel One!

Member Avatar for Ene Uran
0
1K
Member Avatar for sneekula

[QUOTE=Serunson;711543]Rule on England :) As you can tell i am english and think that i could run the country better than the current idiots in charge. They are making a stupid hash job of the economy and we are all screwed![/QUOTE]Hehe :) You should have ruled the country before it …

Member Avatar for lllllIllIlllI
0
330
Member Avatar for Lardmeister

[QUOTE=R0bb0b;721577]To be honest I cannot tell you why I believe what I believe accept that certain events have happened in my life to sway me in that direction. I know that it is extremely far fetched but, until the required evidence is found, no more far fetched than Evolution What …

Member Avatar for sneekula
0
765
Member Avatar for The Dude

[QUOTE=blud;297821]And... I'm done. 300. :mrgreen:[/QUOTE] Congratulations are in order!

Member Avatar for sneekula
0
82
Member Avatar for The Dude

Without some regulation the internet will selfdestruct just like the financial crisis showed. Criminal elements will simply take over.

Member Avatar for GrimJack
0
134
Member Avatar for ZZucker

Why is it that when you transport something by car, it's called a shipment, but when you transport something by ship, it's called cargo?

Member Avatar for Lardmeister
0
1K
Member Avatar for Aia

Using those arguments would make the pilot of a Navy fighter bomber "accidentally" dropping bombs on civilians a mass murderer. There is no sense of decency amongst smear mailers!

Member Avatar for Lardmeister
0
368
Member Avatar for dinilkarun

You could use Hide() and Show(), or, if the frames are equal in size, position them on top of each other: [code=python]# create two frames with wxFrame, only one is showing import wx class Frame1(wx.Frame): def __init__(self, parent, mytitle): wx.Frame.__init__(self, parent, wx.ID_ANY, mytitle) self.SetBackgroundColour("green") # pass frame1 to frame2 as …

Member Avatar for dinilkarun
0
165
Member Avatar for liquoriser21
Member Avatar for Alex Edwards
Member Avatar for Alex Edwards
0
158
Member Avatar for The Dude
Member Avatar for Ene Uran
0
30
Member Avatar for bugmenot

You can use module subprocess and Popen() to pass arguments to and from external programs.

Member Avatar for BearofNH
0
886
Member Avatar for platinum8
Member Avatar for R0bb0b
0
217
Member Avatar for itdupuis

I just read that the thing won't be operational till next Spring. They have to unthaw it to fix the electrical connection of one of the massive magnets.

Member Avatar for itdupuis
0
486
Member Avatar for vmanes
Member Avatar for bonnie1702

Programming with C++ is real easy and shouldn't give you any problems. If it does, we have a very helpfull C++ forum at DaniWeb with he brightest minds to be found anywhere just waiting for your questions.

Member Avatar for bonnie1702
0
168
Member Avatar for kenji

Actually Python30 has made quite a number of changes that will make a beginner stumble when using much of the existing code samples. I would recommend using Python25 or Python26 to get started. Python30 is still too early to play with for beginners and important modules like pygame and wxpython …

Member Avatar for Ene Uran
0
402
Member Avatar for Serunson

Ah, The Great Lord, Serunson! Welcome back, we remember your exceptional intestinal fortitude, wit and wisdom well. Where is your ever so menacing companion, the super poster, what's his name?

Member Avatar for jbennet
0
202
Member Avatar for ihatehippies

I think you are confusing eval() with exec(): [code=python]import pickle y = "x = 5" open_file = open("pickle_file.pkl", "wb") pickle.dump(y, open_file, -1) open_file.close() del y newly_opened = open("pickle_file.pkl", "rb") loaded = pickle.load(newly_opened) newly_opened.close() # test print loaded, type(loaded) # x = 5 <type 'str'> exec(loaded) print x # 5 [/code]

Member Avatar for ihatehippies
0
236
Member Avatar for GrimJack

Do you mean sabbataging? Moving the voting day to the sabbat or Sabbath. I still think it doesn't matter whom you vote for. Once in DC they all turn into the same thing.

Member Avatar for ZZucker
0
380
Member Avatar for kattastic

[QUOTE=kattastic;713267]i am losing my mind the past year has been hell for me my doc won't listen nobody takes me seriously i cannot do anything for myself i am a complete mess i have tried suicide,but i have 2 kids and a dad who will pay the price and i …

Member Avatar for ZZucker
0
159
Member Avatar for The Dude

Sounds like a great idea to me! The cabbies here in LA are maniacs, well they have to be!

Member Avatar for R0bb0b
0
93
Member Avatar for The Dude
Member Avatar for Chemist

[QUOTE=evstevemd;714287]In addition I think using int(raw_input()) is the best practice![/QUOTE]Python30 has done away with raw_input() and simply uses input() which returns a string. So now you have to use int() to convert the string to an integer. Test it out with: [code=python]i = input("Minutes till shutdown: ") print(i, type(i)) [/code]Just …

Member Avatar for Gribouillis
0
139
Member Avatar for kanwal_diku
Member Avatar for twomers
0
139
Member Avatar for peter_budo
Member Avatar for dinesh5

The simple IDE called "IDLE" that is supplied with the usual Python installation has interactive code completion for Python's many builtin functions. The IDE "DrPython" is similar, but gives you a lot more detail what the function does in its popup window.

Member Avatar for jlm699
0
57
Member Avatar for The Dude

The End.