[Python-Dev] __import__ problems

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Nov 29 07:57:22 CET 2008

Mart Somermaa wrote:

> But it is not. The proposed __import__(name, submodule=True) has
> a compatible interface.

Actually, it's not. Keep in mind that __import__ isn't
a particular function, it's a defined interface to a
family of functions. If that interface is extended, any
replacement __import__ functions will be required to
conform to the new interface, and existing ones will
no longer be valid.


More information about the Python-Dev mailing list