Re: puzzlement about classmethod

2006-06-24 Thread Duncan Booth
Faheem Mitha wrote: > Nearly everything behaves the way I would expect, except that setting > x to 12 in A using class_setx at the beginning also sets the value for > x in B. However, the converse (setting x in B using class_setx), does > not change the value in A, which I would consider to be the

puzzlement about classmethod

2006-06-24 Thread Faheem Mitha
Hi, Consider the following small script. My understanding of how this works is that, conceptually, class B holds a separate copy of variable x from class A. Nearly everything behaves the way I would expect, except that setting x to 12 in A using class_setx at the beginning also sets the value fo