[issue29838] Check that sq_length and mq_length return non-negative result

Serhiy Storchaka report at bugs.python.org
Fri Mar 24 17:38:38 EDT 2017


Serhiy Storchaka added the comment:

assert() is no-op in release build and that are not critical parts.

Actually the patch decreases the number of checks in release build. Runtime check PyErr_Occurred() is moved into assert() in builtin_len().

----------

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


More information about the Python-bugs-list mailing list