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> _______________________________________