- Code: Select all
sound/ Top-level package
__init__.py Initialize the sound package
formats/ Subpackage for file format conversions
__init__.py
wavread.py
wavwrite.py
aiffread.py
aiffwrite.py
auread.py
auwrite.py
...
effects/ Subpackage for sound effects
__init__.py
echo.py
surround.py
reverse.py
...
filters/ Subpackage for filters
__init__.py
equalizer.py
vocoder.py
karaoke.py
Looks like packages can contain modules and modules can contain functions or classes.
I need to define one package and put a few class definition files into the package directly (without modules).
- Code: Select all
foo/
__init__.py
class_01.py
class_02.py
class_03.py
I have tried this way, but python show me: module object is not callable.