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 pitrou
Recipients brett.cannon, christian.heimes, pitrou
Date 2013-10-24.20:09:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Importing warnings pulls linecache at the top-level, while it's only necessary when printing warnings. The reason why it wasn't done lazily is obsolete, since Python now has per-module import locks. Attached patch makes the linecache imports lazy.

This is desirable for issue #19375.
Date User Action Args
2013-10-24 20:09:10pitrousetrecipients: + pitrou, brett.cannon, christian.heimes
2013-10-24 20:09:10pitrousetmessageid: <>
2013-10-24 20:09:10pitroulinkissue19379 messages
2013-10-24 20:09:10pitroucreate