[Python-3000] Interest in PEP for callbacks on module import

Phillip J. Eby pje at telecommunity.com
Sun Dec 9 00:28:15 CET 2007


At 10:32 PM 12/8/2007 +0100, Christian Heimes wrote:
>The pre import hook can probably be implemented in pure Python with a
>meta path hook as described in http://www.python.org/dev/peps/pep-0302/.
>I see the pre import hook as a lightweight meta path hook with an easy
>to use interface.

Which means it doesn't need a PEP and can be implemented as a library 
today for any version of Python 2.3+.

The PEP is needed for a post-import (and laziness) hook due to 
interop issues, not to mention the difficulty of getting it right.



More information about the Python-3000 mailing list