How to guard against bugs like this one?

Carl Banks pavlovevidence at
Tue Feb 2 19:45:07 CET 2010

On Feb 2, 2:49 am, Jean-Michel Pichavant <jeanmic... at>
> Carl Banks wrote:
> > Name your modules "" or "" or if it's a
> > library module of related functions, "".  Modules and
> > scripts do things (usually), they should be given action words as
> > names.
> > (**) Questionable though it be, if the Standard Library wants to use
> > an "innocuous" name, It can.
> That does not solve anything,

Of course it does, it solves the problem of having poorly-named
modules.  It also helps reduce possibility of name clashes.

> if the smtplib follows your advice, then
> you'll be shadowing its send_email module.
> The only way to avoid collision would be to name your module

I know, and as we all know accidental name clashes are the end of the
world and Mother Python should protect us feeble victims from any
remote possibility of ever having a name clash.

Carl Banks

More information about the Python-list mailing list