advice on this little script

Alex Martelli aleaxit at
Thu Mar 9 16:19:37 CET 2006

Kent Johnson <kent at> wrote:
> If you use from xx import yy, searching for yy will show you its 
> provenance as well.

But when seeing the barename yy, it gives no clue whether the module
you're reading used 'from xx import yy' or defined yy in any other way
(localy, globally, or in any intermediate scope).

'from' has many other disadvantages, such as working badly with reload
_except_ when used specifically to import a module.


More information about the Python-list mailing list