[Python-ideas] Avoid circular import

Oleg Broytman phd at phdru.name
Tue Apr 10 16:11:05 CEST 2012

On Tue, Apr 10, 2012 at 02:56:36PM +0100, Sven Marnach <sven at marnach.net> wrote:
> This issue can be easily overcome with function-level imports, but
> some people don't like function-level imports either.

   Can I say I doubt it's a good reason to change Python?

> The same issue turned up when porting the Python Imaging Library to
> Python 3.  PIL uses implicit relative, circular imports which have to
> be turned into function-level imports to work properly on Python 3,
> see [2] for details.
> [2]: https://github.com/sloonz/pil-py3k/pull/2

   Was there any major problem in fixing that?

     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-ideas mailing list