R. David Murray added the comment:

Yes.  The second element of the sys.exc_info result is the exception instance, 
not the argument to the exception constructor.  The old raise syntax allowed 
you to specify the exception instance as the second argument to raise, but if 
you specified a string it converted it to an exception instance using the first 
argument as the constructor to call.  So, the 2.7 docs aren't entirely 
accurate, since it isn't the second argument to raise that is stored, but the 
object that results from raise *processing* its second argument.

----------

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

Reply via email to