3 ms·
Yes, that works if you do: from foo import nonexistent but if you do: import foo foo.nonexistent() You get a run time error. A lot of the time
by graemep 2y ago
Yes, that works if you do:
from foo import nonexistent
but if you do:
import foo
foo.nonexistent()
You get a run time error.
A lot of the time with Python you will be importing classes so it will be mostly run time errors.