Unexpected python exception

Andreas Löscher andreas.loescher at s2005.tu-chemnitz.de
Wed Nov 11 12:25:53 CET 2009


Hi,
unfortunatley I cannot reproduce your error. Which Python Version do you
use?

The expected case in this scenario is that the exception is thrown, as
you import os in A() where it is stored in the local namespace of the
function.

I tested it with Python 2.4, 2.5 and 2.6 and in both cases an exception
is thrown.

Best,
Andreas




More information about the Python-list mailing list