[docs] [issue25381] Doc: Use of old description of raise in Python3
R. David Murray
report at bugs.python.org
Mon Oct 12 17:57:28 CEST 2015
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 <report at bugs.python.org>
More information about the docs