Better error message on recursive import

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Sep 11 12:19:06 EDT 2008


On Thu, 11 Sep 2008 12:43:34 +0200, Thomas Guettler wrote:

> why does Python only raise ImportError if it fails caused by a recursive
> import?
> 
> I know what's wrong. But I guess many beginner don't know what's wrong.
> I don't want much, just "RecursiveImportError" instead of "ImportError".
> Is this possible?

Can you give an example of such a recursive import you want the special 
exception be raised?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list