This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jkamdjou
Recipients berker.peksag, ezio.melotti, jkamdjou, kodial, xtreak
Date 2020-01-04.18:28:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578162528.26.0.418351018915.issue34480@roundup.psfhosted.org>
In-reply-to
Content
(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.
History
Date User Action Args
2020-01-04 18:28:48jkamdjousetrecipients: + jkamdjou, ezio.melotti, berker.peksag, xtreak, kodial
2020-01-04 18:28:48jkamdjousetmessageid: <1578162528.26.0.418351018915.issue34480@roundup.psfhosted.org>
2020-01-04 18:28:48jkamdjoulinkissue34480 messages
2020-01-04 18:28:48jkamdjoucreate