[issue37240] Filename http.py breaks calls to urllib

2019-06-11 Thread Eric V. Smith
Eric V. Smith added the comment: Closing as not a bug. This is how python works: you do not want to name a file the same as any standard library module. Use a file name other than http.py. -- components: +Library (Lib) -Windows nosy: +eric.smith -paul.moore, steve.dower, tim.golden, z

[issue37240] Filename http.py breaks calls to urllib

2019-06-11 Thread Agrim Sachdeva
New submission from Agrim Sachdeva : If a script that uses urllib is named http.py, the following error occurs: Traceback (most recent call last): File ".\http.py", line 1, in import urllib.request, urllib.parse, urllib.error File "C:\Users\grim\AppData\Local\Programs\Python\Python37\