Brett Cannon <br...@python.org> added the comment: First, because os is such a common module that hiding some uncommon imports at the module level helps with startup costs.
Second, this is not a bug as the code is not behaving in an improper manner. The import lock is doing what it is supposed to be doing and importing at the module level is still okay. You can open the issue again if you want, but I think this is not worth changing. ---------- assignee: brett.cannon -> _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1590864> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com