[issue2743] Fix module output for warnings from the interpreter

Brett Cannon report at bugs.python.org
Sat May 3 03:35:00 CEST 2008


Brett Cannon <brett at python.org> added the comment:

So I found the problem. The C implementation of 'warnings' is not handling 
the case where the module that triggered the exception does not define 
__file__, __name__ == '__main__', and sys.argv[0] is a false value in the 
same way as the Python implementation.

Rather obscure to say the least. =)

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2743>
__________________________________


More information about the Python-bugs-list mailing list