Hi all,
I have a python module (M) with the following structure
M (directory)
| __init__.py (class Base(object) ...)
| - a.py (class A(Base) ...)
| - b.py (class B(Base) ...)
| - c.py (class C(Base) ...)
The __init_.py has a class which all the sub-modu
or another anyway.
>
> What I'm wondering about is module organization.
>
> I created my own directory for storing my modules and added the full
> path to this to PYTHONPATH (Windows XP platform).
>
> This means that "import modulename" works for my module
or another anyway.
>
> What I'm wondering about is module organization.
>
> I created my own directory for storing my modules and added the full
> path to this to PYTHONPATH (Windows XP platform).
>
> This means that "import modulename" works for my module
I am slowly learning Python and I'm already starting to write some minor
modules for myself. Undoubtedly there are better modules available
either built-in or 3rd party that do the same as mine and much more but
I need to learn it one way or another anyway.
What I'm wondering about