[Python-Dev] import problems (original) (raw)

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.

-- Greg



More information about the Python-Dev mailing list