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
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\