[Twisted-Python] Why classes in twisted.protocols.basic use "static member" to store states?
littlesweetmelon at gmail.com
Fri Mar 30 05:23:31 EDT 2007
No, I don't think so. ^_^ You can see it from the last lines in you
Instance c & d indeed share the class attribute "count". You can try
it more explicitly:
>>> class A:
... i = 0
>>> p = A()
>>> q = A()
>>> A.i = 2
Again, instance p & q share the class attribute "i".
More information about the Twisted-Python