Request for help on naming conventions
pink at odahoda.de
Mon Jun 13 14:28:47 CEST 2005
Steven D'Aprano wrote:
> Are there any useful naming conventions for modules, classes and
> For instance, should I name functions as verbs and classes as nouns?
> class Transformer():
> def transform():
> What about the module name? transformations.py or transform.py?
You probably want to read the PEP 8, "Style Guide for Python Code":
> What do people do with their own code? Do folks find that being
> consistent helps them remember what is what, or do you name objects
> whatever feels right at the time?
Naming convention are mostly a matter of personal taste (unless you are
working in a larger team, where there are some official conventions that
must be followed). So I would say the 'feels right' is the most important
Email: pink at odahoda dot de
More information about the Python-list