Guido van Rossum <[email protected]> added the comment:
For example:
raise SyntaxError("message", ("<file>", 1, 3, "text"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<file>", line 1
text
^
SyntaxError: message
>>>
(I can't find docs for the constructor of SyntaxError objects. We should update
the docs.)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40546>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com