[issue28959] Add a macro for dict size

Serhiy Storchaka report at bugs.python.org
Tue Dec 13 13:56:46 EST 2016


Serhiy Storchaka added the comment:

Following patch also switches the struct of a dict to PyObject_VAR_HEAD.

Should we use Py_SIZE or _PyDict_GET_SIZE? It is easier to replace _PyDict_GET_SIZE with Py_SIZE than restore dict-specific name from some of Py_SIZE-s.

----------
Added file: http://bugs.python.org/file45877/_PyDict_GET_SIZE-2.patch

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


More information about the Python-bugs-list mailing list