summaryrefslogtreecommitdiffstats
path: root/PC/testpy.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-04-06 00:11:39 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-04-06 00:11:39 (GMT)
commitbf384c256e0513eba7bc59cc5f8fa36b34c62c96 (patch)
treebb0f732b35f4ad7b6df08dc187eaed078da576e0 /PC/testpy.py
parentf6ae7a43eb781f2922309278d8005415e507ad28 (diff)
downloadcpython-bf384c256e0513eba7bc59cc5f8fa36b34c62c96.zip
cpython-bf384c256e0513eba7bc59cc5f8fa36b34c62c96.tar.gz
cpython-bf384c256e0513eba7bc59cc5f8fa36b34c62c96.tar.bz2
Reworked move_finalizer_reachable() to create two distinct lists:
externally unreachable objects with finalizers, and externally unreachable objects without finalizers reachable from such objects. This allows us to call has_finalizer() at most once per object, and so limit the pain of nasty getattr hooks. This fixes the failing "boom 2" example Jeremy posted (a non-printing variant of which is now part of test_gc), via never triggering the nasty part of its __getattr__ method.
Diffstat (limited to 'PC/testpy.py')
0 files changed, 0 insertions, 0 deletions