[issue39782] local varible referenced a Exception won't be collected in function

2020-05-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: -19562 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue39782] local varible referenced a Exception won't be collected in function

2020-05-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre nosy_count: 2.0 -> 3.0 pull_requests: +19562 pull_request: https://github.com/python/cpython/pull/20288 ___ Python tracker ___ __

[issue39782] local varible referenced a Exception won't be collected in function

2020-02-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: For beginners, 'is this a Python bug' questions should usually be directed elsewhere for initial review. https://docs.python.org/3/reference/compound_stmts.html#the-try-statement "When an exception has been assigned using as target, it is cleared at the end

[issue39782] local varible referenced a Exception won't be collected in function

2020-02-28 Thread Wang Jie
New submission from Wang Jie : I referenced an Exception object in a function and found memory usage will increase constantly in the accident. I think it may be a bug. I wrote a minimal code to reproduce it. ```py from threading import local, Thread from time import sleep l = {} def t0():