[issue1878] class attribute cache failure (regression)

Paul Pogonyshev report at bugs.python.org
Sun Jan 20 18:45:32 CET 2008


Paul Pogonyshev added the comment:

OK, here it is:

>>> from notify.all import *
>>> original_protector = AbstractGCProtector.default
>>> new_protector = FastGCProtector ()
>>> AbstractGCProtector.set_default (new_protector)
>>> AbstractGCProtector.default is new_protector
False
>>> AbstractGCProtector.default is original_protector
True

It seems that this behaviour is somewhat random.  Sometimes the
False/True lines are reversed, as expected.  I.e. it seems that
attribute cache is sometimes recomputed...

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1878>
__________________________________


More information about the Python-bugs-list mailing list