[Tutor] Why a global?

2006-12-27 Thread Carlos
Hello, Can help me with this: I am using a python module that someone else wrote http://www.alextreme.org/projects/python_ai/ This is an example of how it works # Usage: # import ga # # ga = ga.GA() # ga.evolve() # Function arguments (fun defaults are used otherwise): # # ga.GA(population_siz

Re: [Tutor] Why a global?

2006-12-27 Thread Christopher Arndt
Carlos schrieb: > My problem is that no matter were I put this, I have to declare ga a > global. You are confusing two different objects with the name 'ga' here: a) the module object 'ga' which you create by import ing it: import ga this binds the name 'ga' to the module object created by read

[Tutor] Python cgi scripting

2006-12-27 Thread Troy
Hello. I'm just starting to learn Python, and want to do some python cgi scripting. Can someone recommend a good web site or online reference (beginner level)? Thank you. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/

Re: [Tutor] Python cgi scripting

2006-12-27 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Troy > Sent: Tuesday, December 26, 2006 10:01 PM > To: tutor@python.org > Subject: [Tutor] Python cgi scripting > > Hello. I'm just starting to learn Python, and want to do some python > cgi script

Re: [Tutor] Python cgi scripting

2006-12-27 Thread Alan Gauld
"Troy" <[EMAIL PROTECTED]> wrote > Hello. I'm just starting to learn Python, and want to do some > python > cgi scripting. Can someone recommend a good web site or online > reference (beginner level)? The standard documentation for cgi is pretty good. Also check out the Web Programming Topic

[Tutor] [OT]Test

2006-12-27 Thread Ricardo Barberis
Sorry, just testing if I can receive mail from this list again. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor