[issue34250] import xmlrpclib not works in file named "xml.py"
Berker Peksag
report at bugs.python.org
Fri Jul 27 12:23:23 EDT 2018
Berker Peksag <berker.peksag at gmail.com> added the comment:
This is expected, because there is a package named 'xml' in the Python standard library. See http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-name-shadowing-trap and http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html#the-stale-bytecode-file-trap for details.
----------
nosy: +berker.peksag
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34250>
_______________________________________
More information about the Python-bugs-list
mailing list