Guide to organizing modules?

Casey McGinty casey.mcginty at gmail.com
Fri Jun 6 16:56:33 EDT 2008


>
> Yes, in the above post I meant to say package where I said module.
> Right now all my functions are in the __init__.py script, and I would
> consider separating them out into sub-packages, if it had any rhyme or
> reason, but right now that escapes me. That's mostly what I'm trying
> to ask for.
>
> Thanks,
> --Buck
>  <http://mail.python.org/mailman/listinfo/python-list>
>

Have you thought about  creating a number of new module files in your
package, and importing them into __init__.py? If you do that you could hide
the fact that the functions are in distinct files from outside of the
package.

- Casey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080606/9c3bd219/attachment-0001.html>


More information about the Python-list mailing list