Greg Hazel <gha...@users.sourceforge.net> added the comment:

Searching the file for "raise" is sort of pointless, since exec() takes a 
string which might have come from anywhere, and there might be any number of 
exec() calls in the module. See: http://codepad.org/7EBMhb0O

There are at least two reasonable answers:

<string>:1: DeprecationWarning: raising a string exception is deprecated
  raise 'two'

or:

t.py:7: DeprecationWarning: raising a string exception is deprecated
  exec(x)

Either one would be fine, but randomly choosing the first line of the module 
where exec() is called is just nonsense.

If you want one that applies to Python 3.x, here you go: 
http://codepad.org/Mq1eZyoE

----------
status: closed -> open
versions: +Python 2.6, Python 3.1, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue3423>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to