[issue25493] warnings.warn: wrong stacklevel causes import of local file "sys"

Brett Cannon report at bugs.python.org
Tue Oct 27 13:05:48 EDT 2015


Brett Cannon added the comment:

I'll have to dig into this to figure out what's going on, but since the sys module is built into Python it makes it so import won't accidentally import some file named sys. the real question is who thinks the 'sys' file should be considered.

----------
assignee:  -> brett.cannon

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25493>
_______________________________________


More information about the Python-bugs-list mailing list