[Python-Dev] Import redesign [LONG]

Greg Stein gstein@lyra.org
Tue, 7 Dec 1999 08:53:49 -0800 (PST)


On Tue, 7 Dec 1999, Guido van Rossum wrote:
> > If we were to combine them, then we would need to maintain the ordering
> > requirements implied by sys.path. However, this would be problematic if
> > sys.path changed -- we would have to detect the situation and rebuild a
> > merged dict.
> 
> No need to worry about this: just don't merge the caches.  Compared to
> the hundreds of failed open() calls that are done now, it's no big
> deal to do 12 failed Python dictionary lookups instead of one.

Have no fear... I wasn't planning on this... complicates too much stuff
for too little gain.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/