Global variables, Classes, inheritance

DaveM asma61 at dsl.pipex.com
Mon Feb 6 19:35:50 EST 2006


Thanks very much for the help to all who replied.
I'd completely missed the difference between:

class Foo:
   i = 12345

a = Foo()
b = Foo()

a.i = 678

and Foo.i = 678

Yeah, I know...

DaveM



More information about the Python-list mailing list