Why is "f1" not affected by the Class-level variable change below ?
>>> class Foo( object ): ... myid = 'Foo' ... def __init__( self ): ... pass ... >>> f1 = Foo() >>> f2 = Foo() >>> f1.myid = 'Bar' >>> Foo.myid = 'SPAM' >>> f1.myid <----------------------- Why is "f1" not affected by the >>> Class variable change ? 'Bar' >>> f2.myid 'SPAM' >>> f4 = Foo() >>> f4.myid 'SPAM' >>> _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor