Jun-28-2021, 09:06 AM
Can look this post for some examples.
See in this example how top level
This mean that can have simple import
A good example in of this Requests see that import is simple
Here a example where import could be simpler for users.
See in this example how top level
__init__.py
is used to lift sub-modules and bind package together.This mean that can have simple import
import my_makehtml
now have attribute access to all in package.A good example in of this Requests see that import is simple
import requests
and you have attribute access to all useful stuff in package.Here a example where import could be simpler for users.
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
cuppajoeman Wrote:from numuse.converters import *Never use
import *
at all,it's always bad.