[Tutor] Toronto PyCamp 2011

2011-04-04 Thread Chris Calloway
The University of Toronto Department of Physics brings PyCamp to Toronto on Monday, June 27 through Thursday, June 30, 2011. Register today at http://trizpug.org/boot-camp/torpy11/ For beginners, this ultra-low-cost Python Boot Camp makes you productive so you can get your work done quickly. P

Re: [Tutor] Recommendations required

2011-04-04 Thread michael scott
Hello Ankur, Well as a beginner myself I suggest that you check out these games and modify them or create new versions of them (with additional functionality). There are lots of stock answers, but in general old arcade games from the 70's are great places to start. They are simple enough and yo

[Tutor] Recommendations required

2011-04-04 Thread ANKUR AGGARWAL
Hey I am reading pygame module and experimenting with it in small codes too . I want your help. I want you to recommend the games ,beginner of this module should try to develop as a practice or so. Thanks Ankur Aggarwal ___ Tutor maillist - Tutor@pytho

Re: [Tutor] Passing a Variable

2011-04-04 Thread Lie Ryan
On 04/04/11 11:55, Ryan Strunk wrote: > Hi list, > > I am in the midst of trying to code a game based entirely on audio cues, and > I've run into a bit of a snag when trying to monitor certain variables. I'll > lay out the framework of what I'm going for in the hope that it makes sense > when writ

Re: [Tutor] Calling another script

2011-04-04 Thread tee chwee liong
thanks all for your advice. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Calling another script

2011-04-04 Thread Alan Gauld
"tee chwee liong" wrote i want one.py to read a configuration file and executes two.py and three.py. if int(operation)== 0: import two else: print "Default" two.py: print "executing script number 2" Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

Re: [Tutor] Passing a Variable

2011-04-04 Thread Andre Engels
On Mon, Apr 4, 2011 at 7:27 AM, Ryan Strunk wrote: >> I've read your code. Frankly I don't understand your problem. I also don't > see any occurrence of "health". > There isn't a reference to health here. My goal is to have this code act as > a checker for health, fatigue, time_remaining, or any o

Re: [Tutor] Calling another script

2011-04-04 Thread Steven D'Aprano
On Mon, Apr 04, 2011 at 05:10:50AM +, tee chwee liong wrote: > > hi, > > i opened a cmd DOS prompt to execute one.py. it works to execute codes from > two.py and three.py. yes, you are fight it will not re-execute the module. > is there a way to do it? i want after the python script finish

Re: [Tutor] Calling another script

2011-04-04 Thread Alan Gauld
"tee chwee liong" wrote i want one.py to read a configuration file and executes two.py and three.py. if int(operation)== 0: import two else: print "Default" two.py: print "executing script number 2" Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

[Tutor] (no subject)

2011-04-04 Thread Greg Richards
http%3A%2F%2Fminilien%2Ecom%2F%3FZuctsogCRp ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Converting a numpy matrix to a numpy array

2011-04-04 Thread Peter Otten
David Crisp wrote: > np.array([np.arange(9)//3, np.arange(9)%3, a.flatten()], >> dtype=object).transpose() >> array([[0, 0, x], >> [0, 1, o], >> [0, 2, o], >> [1, 0, o], >> [1, 1, x], >> [1, 2, x], >> [2, 0, o], >> [2, 1, x], >> [2, 2, o]], dtype=object) >> >> If that's not good enough you may