Python has two ways to import something from a module:
from mymodule import ClassOne, ClassTwo, ClassThree
and
from mymodule import (ClassOne, ClassTwo, ClassThree)
I cannot find any note (probably, I'm just not trying hard enough) on this in Python's documentation. I want to know the significant difference between these two ways of importing.
If you put the items to import between brackets, you can use more than one line for everything you want to import, without escaping newlines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With