module naming conventions

Ben Finney bignose+hates-spam at benfinney.id.au
Mon Jan 14 17:47:25 EST 2008


grackle <davidhuebel at gmail.com> writes:

> Obviously Java-style naming is a mistake in Python, since top-level
> names have to be unique.  Is there a standard naming convention to
> facilitate mixing code from different sources, such as
> mygroupname_modulename?  Is there a best practices guide for module
> naming?

I'm not sure, but it sounds as though you have yet to discover Python
module packages <URL:http://www.python.org/doc/essays/packages.html>.
They allow a hierarchy of modules in directories.

The Python tutorial <URL:http://www.python.org/doc/tut/> will make
this and many more fundamental concepts of Python clearer by working
through it. Read each section, run every example, and experiment with
it until you understand it. Then move on to the next section. Repeat
until done.

-- 
 \        "A hundred times every day I remind myself that [...] I must |
  `\       exert myself in order to give in the same measure as I have |
_o__)                received and am still receiving" —Albert Einstein |
Ben Finney



More information about the Python-list mailing list