RE: Can someone explain what I've done wrong...

2005-09-19 Thread Delaney, Timothy (Tim)
Tim Roberts wrote: > Everything works OK while your script runs. When the script exits, > your "main" module goes to clean things up. Apparently, it does so > alphabetically. Nope - it would do it in the iteration order of the module's __dict__. Not something that can be relied on. Tim Delaney

Re: Can someone explain what I've done wrong...

2005-09-19 Thread Tim Roberts
Jason <[EMAIL PROTECTED]> wrote: > >Have to say, I was confused with the post (I received via email, Want to have even more fun? Rename the variable "Sophie" to "Mophie", and your script will work just as you expect. >can't >see it on the newsgroup yet) from Astan Chee saying he couldn't >unde

Re: Can someone explain what I've done wrong...

2005-09-17 Thread Jason
Thanks for the explanation JP Calderone. Have to say, I was confused with the post (I received via email, can't see it on the newsgroup yet) from Astan Chee saying he couldn't understand how the Person class was destroyed. I'm still new(ish) with Python but I was lead to believe the __del__ ca

Re: Can someone explain what I've done wrong...

2005-09-17 Thread Jp Calderone
On Sun, 18 Sep 2005 02:10:50 +0100, Jason <[EMAIL PROTECTED]> wrote: >Hi, > >I'm following a tutorial about classes, and have created the following >(well, copied it from the manual buy added my own and wifes names)... > >class Person: > population=0 > > def __init__(self,name): > s

Can someone explain what I've done wrong...

2005-09-17 Thread Jason
Hi, I'm following a tutorial about classes, and have created the following (well, copied it from the manual buy added my own and wifes names)... class Person: population=0 def __init__(self,name): self.name=name print '(Initialising %s)' % self.name Person.p