New submission from Agrim Sachdeva <as2...@njit.edu>:
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 <module> import urllib.request, urllib.parse, urllib.error File "C:\Users\grim\AppData\Local\Programs\Python\Python37\lib\urllib\request.py", line 88, in <module> import http.client File "C:\Python\http.py", line 11, in <module> html = urllib.request.urlopen(url).read() AttributeError: module 'urllib' has no attribute 'request' ---------- components: Windows messages: 345282 nosy: Agrim Sachdeva2, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Filename http.py breaks calls to urllib type: compile error versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37240> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com