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 <1458832248.19.0.24241631051.issue21925@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1458832248.19.0.24241631051.issue21925@psf.upfronthosting.co.za>
2016-03-24 15:10:48vstinnerlinkissue21925 messages
2016-03-24 15:10:47vstinnercreate