Message262353
It looks like the warnings is logged when the C implemention is used. When the Python implementation is used, "import linecache" or "linecache.getline()" fail, and so the warnings is skipped.
Attached patch makes the Python implementation safer when Python is shutting down. Add "try/except Exception" to ignore exceptions on import, linecache and tracemalloc. |
|
Date |
User |
Action |
Args |
2016-03-24 15:10:48 | vstinner | set | recipients:
+ vstinner, pitrou, ned.deily, Arfrever, python-dev, serhiy.storchaka, msmhrt |
2016-03-24 15:10:48 | vstinner | set | messageid: <1458832248.19.0.24241631051.issue21925@psf.upfronthosting.co.za> |
2016-03-24 15:10:48 | vstinner | link | issue21925 messages |
2016-03-24 15:10:47 | vstinner | create | |
|