On Thu, 18 Nov 2010 16:14:35 +0100 Tarek Ziadé firstname.lastname@example.org wrote:
I don't know of this was mentioned before, or how hard it would be. But it would be nice if Python had a specific "CircularImportError" raised in that case, or something.. That would be a fabulous hint for developers.
It can't be an error, since circular imports are supported. There could be a warning, but IMO it would need to be silenced by default (which means ImportWarning isn't appropriate).