STINNER Victor added the comment: > Can I assume PY_SSIZE_T_MAX is 2**n-1? I think so. Add an assertion just to be sure :-) ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue28731> _______________________________________