[issue34250] import xmlrpclib not works in file named "xml.py"

2018-07-27 Thread Berker Peksag
Berker Peksag 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

[issue34250] import xmlrpclib not works in file named "xml.py"

2018-07-27 Thread Fekete György
New submission from Fekete György : Big magic in python 2.7.15 win version: Create file: "xml.py" containing 2 code lines: import xmlrpclib proxy = xmlrpclib.ServerProxy("http://localhost:8000/";) run it, and it gives u a nice error: C:\work\mitre>\Python27\python.exe xml.py Traceback (most r