Message277863
| Author |
xdegaye |
| Recipients |
Jack Liu, draghuram, georg.brandl, gregory.p.smith, isandler, pitrou, r.david.murray, vstinner, xdegaye |
| Date |
2016年10月02日.09:02:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1475398955.02.0.0615704266893.issue20766@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The problem may still be reproduced by running the attached pdb_refleak.py script. Enter three times 'c' (short for the pdb 'continue' command) and the following line is printed:
pdb 3 -> pdb 2 -> pdb 1
This shows that the third pdb instance 'pdb 3', owns indirectly a reference to the second and first pdb instances. As the _signal extension module owns a reference to 'pdb 3' through its sigint_handler() method, then it also owns indirectly a reference to 'pdb 1'. |
|