I was reading on the difference between from … import
vs import ...
in python 3.6.
after multiple search I can't find any answer to my specific question.
Look at the following example:
from urllib import request
import urllib
1) Are they equal? I suppose from the basic meaning in English language that the first one imports only request
and the seconds imports everything inside urllib
including request
and many others. Am I right?
2) I 1 is true, suppose my python program uses only request
from urllib
would their be any performance advantages on using the first instead of the second?