Guide to organizing modules?
alex23
wuwei23 at gmail.com
Thu Jun 5 20:58:19 EDT 2008
On Jun 6, 10:32 am, bukzor <workithar... at gmail.com> wrote:
> In summary: are there any good (or official) guidelines for how to
> organize and separate python functions and classes into modules?
Hey bukzor,
Are you familiar with the concept of packages in Python?
http://docs.python.org/tut/node8.html#SECTION008400000000000000000
That should allow you to keep all of your scriptlets as separate files
while still having the advantage of keeping them in a single namespace
for importing.
(But if you know this already, don't mind me....)
More information about the Python-list
mailing list