Antoine Pitrou added the comment: Also, by construction it will only happen if the import happens under the interpreter prompt (hence the "<stdin>" filename).
I honestly don't think this deserves introducing some complication, only to avoid a couple filesystem accesses. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1514420> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com