Explicit or general importing of namespaces?

Nick Craig-Wood nick at craig-wood.com
Tue Mar 1 01:48:03 EST 2005


Paul Rubin <http> wrote:
>  Peter Hansen <peter at engcorp.com> writes:
> > Ultimately more important than mere "pollution" are the
> > latent problems this can cause if any of the names in
> > the original module can ever be re-bound.
> 
>  You know, this is another reason the compiler really ought to (at
>  least optionally) check for such shadowing and have a setting to
>  enforce user declarations, like perl's "use strict".

As a (mostly) ex-perl user I wouldn't like to see python go there - it
seems like a rather slippery slope (like the warnings subsystem).

This is surely a job for pychecker / pylint?

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list