[issue28731] _PyDict_NewPresized() creates too small dict

INADA Naoki report at bugs.python.org
Fri Nov 18 09:14:29 EST 2016


INADA Naoki added the comment:

Can I assume PY_SSIZE_T_MAX is 2**n-1?
If so, I can define like:

#define PyDict_MAXSIZE (PY_SSIZE_T/8+1)

----------

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


More information about the Python-bugs-list mailing list