Author _doublep
Recipients _doublep
Date 2008-01-20.17:40:56
SpamBayes Score 0.014225
Marked as misclassified No
Message-id <1200850858.46.0.900672455163.issue1878@psf.upfronthosting.co.za>
In-reply-to
Content
I have a regression from Python 2.5 to Python SVN (would-be-2.6).  I
believe this because of class attribute caching.  The problem shown
below happens because AbstractGCProtector is an extension class.  So,
Python interpreter doesn't have a chance to notice set_default() method
below changes a class attribute.

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

Please note that this a regression.  This code works as expected in 2.3
and 2.5.
History
Date User Action Args
2008-01-20 17:40:58_doublepsetspambayes_score: 0.014225 -> 0.014225
recipients: + _doublep
2008-01-20 17:40:58_doublepsetspambayes_score: 0.014225 -> 0.014225
messageid: <1200850858.46.0.900672455163.issue1878@psf.upfronthosting.co.za>
2008-01-20 17:40:57_doubleplinkissue1878 messages
2008-01-20 17:40:56_doublepcreate