Nov-29-2018, 12:29 AM
(Nov-28-2018, 10:25 PM)Truman Wrote: that's cool but the condition to be met is that we know at first that utils exists...Is there any command such as dir that gives a list of all the methods? It looks that answer is negative.
There is a way. If you use IPython for example as a REPL. Or bpython. Import the requests module, type
requests.
and hit TAB for autocompletion. You will see it - requests.utils is there.You can do autocompletion in the Python's REPL too: https://gableroux.com/python/2016/01/20/...ocomplete/