Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20030

Re: Naming convention for in-house modules (Newbie question)

References <jguajb$mqe$1@news.albasani.net>
Date 2012-02-08 09:49 -0800
Subject Re: Naming convention for in-house modules (Newbie question)
From Chris Rebert <clp2@rebertia.com>
Newsgroups comp.lang.python
Message-ID <mailman.5550.1328723373.27778.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Feb 8, 2012 at 9:15 AM, HoneyMonster <someone@someplace.invalid> wrote:
> I am quite new to Python (2.7 on Linux), and have built a few modules
> using wxPython/wxGlade for GUI elements and Psycopg2 for database access.
> I adhere mostly to the PEP8 guidelines, and use Pylint to help with
> quality control.
>
> So far I have been *very* impressed. Due to Python's straightforwardness
> and the wealth of documentation, results have been excellent.
>
> Here is my question: I would like to start an in-house library of small
> modules to import, for things like error handling/logging. That's easy
> enough, but is there a recommended way of naming such modules? I am
> concerned about avoiding name clashes with standard modules and site
> packages.

You could put all the modules under a single package; then you only
need to worry about avoiding 1 name conflict.

Cheers,
Chris

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Naming convention for in-house modules (Newbie question) HoneyMonster <someone@someplace.invalid> - 2012-02-08 17:15 +0000
  Re: Naming convention for in-house modules (Newbie question) Chris Rebert <clp2@rebertia.com> - 2012-02-08 09:49 -0800
  Re: Naming convention for in-house modules (Newbie question) Laurent Claessens <moky.math@gmail.com> - 2012-02-09 15:00 +0100
    Re: Naming convention for in-house modules (Newbie question) Arnaud Delobelle <arnodel@gmail.com> - 2012-02-09 14:36 +0000
      Re: Naming convention for in-house modules (Newbie question) Laurent Claessens <moky.math@gmail.com> - 2012-02-09 18:42 +0100
      Apparent "double imports" (was: Naming convention for in-house modules (Newbie question)) HoneyMonster <someone@someplace.invalid> - 2012-02-09 18:53 +0000
        Re: Apparent "double imports" (was: Naming convention for in-house modules (Newbie question)) Ian Kelly <ian.g.kelly@gmail.com> - 2012-02-09 12:02 -0700
          Re: Apparent "double imports" (was: Naming convention for in-house modules (Newbie question)) HoneyMonster <someone@someplace.invalid> - 2012-02-09 19:40 +0000
            Re: Apparent "double imports" Dave Angel <d@davea.name> - 2012-02-09 15:05 -0500
              Re: Apparent "double imports" HoneyMonster <someone@someplace.invalid> - 2012-02-09 21:57 +0000

csiph-web