On 2017-06-29 19:19, Thomas Jollans wrote:
[snip]

Ah, Python history.

Back in the old days, it was possible to raise strings instead of the
classes that took over later.

Python 2.4.6 (#1, Jun 29 2017, 19:23:06)
[GCC 5.4.0 20160609] on linux4
Type "help", "copyright", "credits" or "license" for more information.
try:
...     raise 'error', 'message'
... except:
...     import sys
...     print sys.exc_info()
...
('error', 'message', <traceback object at 0x7fe297171128>)


This was deprecated in 2.5, and (I think?) removed in 2.7.

Deprecated in 2.5, gone in 2.6.

From looking at the old documentation, I have a suspicion that until
Python 1.4 (or even earlier than that) the exception "value" was
actually never an exception instance. (I'm afraid I can't find a way to
install 1.4 and test it on my computer. At least not a reasonable one.)

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to