Message298961
It's the f_back reference from the inner frame that's keeping the outer frame alive.
Here's a picture of the create garbage: http://imgur.com/a/OCRe3
And here's the script that created it:
import gc
import refcycle
import sys
import traceback
def hold_world():
try:
raise Exception("test1")
except Exception as exc:
tmp = exc
def use_obj( o ):
hold_world()
def main():
gc.disable()
gc.collect()
o = ["survivor"]
use_obj( o )
garbage = refcycle.garbage()
garbage.export_image()
if __name__ == '__main__':
main() |
|
Date |
User |
Action |
Args |
2017-07-24 12:27:08 | mark.dickinson | set | recipients:
+ mark.dickinson, vojtechfried |
2017-07-24 12:27:08 | mark.dickinson | set | messageid: <1500899228.15.0.515412720689.issue31005@psf.upfronthosting.co.za> |
2017-07-24 12:27:08 | mark.dickinson | link | issue31005 messages |
2017-07-24 12:27:08 | mark.dickinson | create | |
|