[issue31338] Use abort() for code we never expect to hit

Barry A. Warsaw report at bugs.python.org
Tue Sep 5 10:49:59 EDT 2017


Barry A. Warsaw added the comment:

I'm thinking there are two aspects to this.  One would involve updates to PEP 7 to include a section on "Unreachable code".  The other would be a PR that updates the current C code to the PEP 7 standard.

I'll work on a PEP update as a separate PR, then we can discuss further on python-dev.  If the PEP changes are accepted, then we can manage the code changes as a PR against this issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31338>
_______________________________________


More information about the Python-bugs-list mailing list