I have the following file. Why does code completion not run when I press Ctrl-Space
after the "r."? It says "no suggestion" in a red box.
(The program as it is runs and puts out: 200)
__author__ = 'hape'
import urllib.request
import urllib.response
print("Starting")
r = urllib.request.urlopen("http://www.python.org")
r. <------------ No code completion, why not?!
print (r.getcode())
After the r.
, code completion does not popup, why?
r
as the library has no type hints forurlopen
.import pdb; pdb.set_trace()
at the line in question, and in the debugger terminal enterdir(r)
to reveal the attributes of ther
object.