[Python-3000] Changing the import machinery

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 21 10:39:48 CEST 2006


Giovanni Bajo wrote:

> 2) Totally disallow recursive imports (!).

That would be extremely undesirable. I've used languages
in which mutual imports weren't possible, and it's a
massive pain in the posterior. You end up having to
modularise things in awkward and unnatural ways to
get around the restriction.

Possibly it might work to allow mutual imports only
of the form "import spam" and not "from spam import
grail", but I'm not sure about that.

--
Greg


More information about the Python-3000 mailing list