[Distutils] Freeze and new import architecture

John Skaller skaller@maxtal.com.au
Sun, 20 Dec 1998 04:17:10 +1000


At 11:45 18/12/98 +1100, Mark Hammond wrote:
>	WHAT WE WANT
>	============
>
>What we'd like I'll try to describe top-down (hopefully better to
>understand
>than bottom-up).
>
>importing a module becomes something like
>
>   for pathentry in sys.path:
>	finder = getfinder(pathentry)
>	loader = finder.find(module)
>	module = loader()
>getfinder() is something like
>   if not path_to_finder.has_key(pathentry):
>	for f in all_finder_types:
>		finder = f.create_finder(pathentry)
>		if finder:
>			path_to_finder[pathentry] = finder
>			break
>    return path_to_finder[pathentry]

        I think this is excellent! But I'm not clear on
how every kind of finder can be created for every path.
[Also, it should be possible to flush the cache]
-------------------------------------------------------
John Skaller    email: skaller@maxtal.com.au
		http://www.maxtal.com.au/~skaller
		phone: 61-2-96600850
		snail: 10/1 Toxteth Rd, Glebe NSW 2037, Australia