]> granicus.if.org Git - python/commit
bpo-31338 (#3374)
authorBarry Warsaw <barry@python.org>
Fri, 15 Sep 2017 01:13:16 +0000 (18:13 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Sep 2017 01:13:16 +0000 (18:13 -0700)
commitb2e5794870eb4728ddfaafc0f79a40299576434f
treeb625687bc81fd33c04fd83820e1276db92d9fa1a
parentd384a81f557dab0b142bfcc9850bc68df46496ef
bpo-31338 (#3374)

* Add Py_UNREACHABLE() as an alias to abort().
* Use Py_UNREACHABLE() instead of assert(0)
* Convert more unreachable code to use Py_UNREACHABLE()
* Document Py_UNREACHABLE() and a few other macros.
22 files changed:
Doc/c-api/intro.rst
Include/pymacro.h
Misc/NEWS.d/next/C API/2017-09-05-17-51-12.bpo-31338.LjA43Y.rst [new file with mode: 0644]
Modules/_datetimemodule.c
Modules/_pickle.c
Modules/_tracemalloc.c
Modules/mathmodule.c
Objects/abstract.c
Objects/bytesobject.c
Objects/dictobject.c
Objects/longobject.c
Objects/stringlib/eq.h
Objects/unicodeobject.c
Parser/grammar1.c
Python/ast.c
Python/ceval.c
Python/compile.c
Python/formatter_unicode.c
Python/pyhash.c
Python/pystrtod.c
Python/pytime.c
Python/wordcode_helpers.h