Josh Kamdjou added the comment:
(Author of PR https://github.com/python/cpython/pull/17643)
Since the behavior of self.error() is determined by the subclass
implementation, an Exception is not guaranteed. How should this be handled? It
seems the options are:
- continue execution, in which case 'match' needs to be defined (I proposed
initialization to None, which results in returning -1 on the next line)
- return a value
- raise an Exception
Happy to update the PR with @xtreak's test cases.
--
nosy: +jkamdjou
___
Python tracker
<https://bugs.python.org/issue34480>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com