[Python-Dev] Walking up the package hierarchy

M.-A. Lemburg mal@lemburg.com
Wed, 13 Oct 1999 14:27:57 +0200


Strange... I would have thought that this new patch would stir up
some cheers or opposition. Has anyone tried it in some real apps ?

It would be interesting to see whether it breaks any code in e.g.
packages such as Pmw, PIL, Zope's packages or NumPy. It doesn't
break anything for my packages or apps.

> It changes the default import mechanism to work like this:
> 
> >>> import d
> try a.b.c.d
> try a.b.d
> try a.d
> try d
> fail
> 
> instead of just doing the current two-level lookup:
> 
> >>> import d
> try a.b.c.d
> try d
> fail

-- 
Marc-Andre Lemburg
______________________________________________________________________
Y2000:                                                    79 days left
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/