Code style - “flattening” a package's namespace
问题 My package hierarchy: InstrumentController/ __init__.py instruments/ __init__.py _BaseInstrument.py Keithley2000.py # etc... The contents of the instrument files: # _BaseInstrument.py class _BaseInstrument(object): """Base class for instruments""" # etc... # Keithley2000.py from InstrumentController.instruments._BaseInstrument import _BaseInstrument class Keithley2000(_BaseInstrument): # etc... I want my users to be able to access the classes without having to delve into a hierarchy of