This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dugan
Recipients dugan
Date 2009-03-31.23:22:07
SpamBayes Score 4.2116782e-05
Marked as misclassified No
Message-id <1238541730.73.0.292702158526.issue5635@psf.upfronthosting.co.za>
In-reply-to
Content
test_sys refcount test checks that assigning None to a local variable n
increases the references to None by exactly 1.

However sys.settrace is set, then the frame object must be instantiated
to be passed to the trace object.  This increments the reference count
to None again.  Since the locals are not then removed from the frame
object after the sys.settrace call, the number of references remains
increased after the settrace function is exited.

This problem can be avoided by making n a global.
History
Date User Action Args
2009-03-31 23:22:11dugansetrecipients: + dugan
2009-03-31 23:22:10dugansetmessageid: <1238541730.73.0.292702158526.issue5635@psf.upfronthosting.co.za>
2009-03-31 23:22:09duganlinkissue5635 messages
2009-03-31 23:22:08dugancreate