[Python-checkins] [python/cpython] 90e351: bpo-29941: Assert fixes (#886) (#955)

GitHub noreply at github.com
Sat Apr 1 23:20:07 EDT 2017


  Branch: refs/heads/3.6
  Home:   https://github.com/python/cpython
  Commit: 90e3518225bafaff01469ed48c472ae7db5686f0
      https://github.com/python/cpython/commit/90e3518225bafaff01469ed48c472ae7db5686f0
  Author: T. Wouters <thomas at python.org>
  Date:   2017-04-01 (Sat, 01 Apr 2017)

  Changed paths:
    M Include/unicodeobject.h
    M Objects/dictobject.c
    M Objects/obmalloc.c

  Log Message:
  -----------
  bpo-29941: Assert fixes (#886) (#955)

Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means
making sure helper functions are defined when NDEBUG is not defined, not
just when Py_DEBUG is defined.

Also fix a division-by-zero in obmalloc.c that went unnoticed because in
Py_DEBUG mode, elsize is never zero.

(cherry picked from commit a00c3fd12d421e41b769debd7df717d17b0deed5 and 06bb4873d6a9ac303701d08a851d6cd9a51e02a3)




More information about the Python-checkins mailing list