988 Posted Topics
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: Right now I am listening to some Queen on [url]http://www.pandora.com/[/url] | |
Re: 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. | |
| |
Re: Don't you folks listen to McCain? The American economy is fundamentally strong! | |
Re: The problem with socialism is that it does't protect you from financial institutions stealing your money. | |
Re: 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! | |
Re: 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 … | |
Re: Oh sweet Jesus, I had one too many beers. I read "Global Warning" and actually looked at this! I am sorry! | |
Re: [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 … | |
Re: Why not do it on the forum so all of us can learn? | |
Re: 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 … | |
Re: [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! | |
Re: Dictionary follow a hash order to speed up lookup. | |
Re: 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. | |
Re: 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, … | |
Re: 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! | |
Re: [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 … | |
Re: [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 … | |
Re: [QUOTE=blud;297821]And... I'm done. 300. :mrgreen:[/QUOTE] Congratulations are in order! | |
Re: Without some regulation the internet will selfdestruct just like the financial crisis showed. Criminal elements will simply take over. | |
Re: 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? | |
Re: 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! | |
Re: 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 … | |
| |
Re: Use my credit card all the time, but I pay up before the money is due. | |
Re: You can use module subprocess and Popen() to pass arguments to and from external programs. | |
| |
Re: 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. | |
Re: Only our friend vmanes could come up with a jewel like that, thanks! | |
Re: 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. | |
Re: 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 … | |
Re: 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? | |
Re: 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] | |
Re: 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. | |
Re: [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 … | |
Re: Sounds like a great idea to me! The cabbies here in LA are maniacs, well they have to be! | |
![]() | Re: [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 … |
Re: 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. | |
The End.