[Python-Dev] Write All New Import Hooks (PEP 302) in Python, Not C

Samuele Pedroni pedronis@bluewin.ch
Sat, 28 Dec 2002 15:06:56 +0100


From: "Guido van Rossum" <guido@python.org>
> I agree with Samuele's concern that if you have multiple meta_path
> importers, ordering them may become an issue.  On the other hand,
> ordering of entries in sys.path is a bit of a black art, but in 99% of
> the cases, insert-in-front or append-at-end seem suffiecient.  I
> expect that the same will be true for sys.meta_path.  

the difference is that sys.path is really a deployment env issue and there are
PYTHONPATH, site.py etc ...

For meta_path it seems there are programmatical uses (testing frameworks etc),
maybe a priority mechanism is overkill, maybe it would be useful.