Message84946
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. |
|
Date |
User |
Action |
Args |
2009-03-31 23:22:11 | dugan | set | recipients:
+ dugan |
2009-03-31 23:22:10 | dugan | set | messageid: <1238541730.73.0.292702158526.issue5635@psf.upfronthosting.co.za> |
2009-03-31 23:22:09 | dugan | link | issue5635 messages |
2009-03-31 23:22:08 | dugan | create | |
|