[issue19379] Don't import linecache at warnings toplevel

2013-10-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8939c0196990 by Antoine Pitrou in branch 'default': Close #19379: Lazily import linecache in the warnings module, to make startup with warnings faster until a warning gets printed. http://hg.python.org/cpython/rev/8939c0196990 -- nosy: +pyt

[issue19379] Don't import linecache at warnings toplevel

2013-10-24 Thread Brett Cannon
Brett Cannon added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue19379] Don't import linecache at warnings toplevel

2013-10-24 Thread Christian Heimes
Christian Heimes added the comment: LGTM Good catch! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue19379] Don't import linecache at warnings toplevel

2013-10-24 Thread Antoine Pitrou
New submission from Antoine Pitrou: 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 d