Message359301
(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. |
|
Date |
User |
Action |
Args |
2020-01-04 18:28:48 | jkamdjou | set | recipients:
+ jkamdjou, ezio.melotti, berker.peksag, xtreak, kodial |
2020-01-04 18:28:48 | jkamdjou | set | messageid: <1578162528.26.0.418351018915.issue34480@roundup.psfhosted.org> |
2020-01-04 18:28:48 | jkamdjou | link | issue34480 messages |
2020-01-04 18:28:48 | jkamdjou | create | |
|