Better error message on recursive import

Wojtek Walczak gminick at bzt.bzt
Fri Sep 12 12:52:32 CEST 2008


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

Hello,

> 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 think that you're right here. I can't remember any beginner
asking such a question on p.c.py. I think they would come and ask
if it really was problematic.

And, anyway, I don't know how to answer your question :-)

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/



More information about the Python-list mailing list