New submission from Brett Cannon <[EMAIL PROTECTED]>:

In svn, the module name is lost if you raise an exception at the 
interpreter::

 >>> import warnings
 >>> warnings.warn("foo")
 :1: UserWarning: foo

It should be::

 >>> import warnings
 >>> warnings.warn("foo")
 __main__:1: UserWarning: foo

Notice how '__main__' is missing in svn.

----------
assignee: brett.cannon
components: Interpreter Core
messages: 66112
nosy: brett.cannon
priority: critical
severity: normal
status: open
title: Fix module output for warnings from the interpreter
type: behavior
versions: Python 2.6

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2743>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to