This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, msmhrt, ned.deily, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2016-03-24.15:10:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:48vstinnersetrecipients: + vstinner, pitrou, ned.deily, Arfrever, python-dev, serhiy.storchaka, msmhrt
2016-03-24 15:10:48vstinnersetmessageid: <>
2016-03-24 15:10:48vstinnerlinkissue21925 messages
2016-03-24 15:10:47vstinnercreate