Author inada.naoki
Recipients inada.naoki, rhettinger, serhiy.storchaka, vstinner
Date 2016-12-14.02:20:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I didn't know about PyObject_VAR_HEAD much.
The comment of the macro says:

/* PyObject_VAR_HEAD defines the initial segment of all variable-size
 * container objects.  These end with a declaration of an array with 1
 * element, but enough space is malloc'ed so that the array actually
 * has room for ob_size elements.  Note that ob_size is an element count,
 * not necessarily a byte count.

dict doesn't end with array.
Does Py_SIZE() support recommended, like Python's len()?
Date User Action Args
2016-12-14 02:20:16inada.naokisetrecipients: + inada.naoki, rhettinger, vstinner, serhiy.storchaka
2016-12-14 02:20:16inada.naokisetmessageid: <>
2016-12-14 02:20:16inada.naokilinkissue28959 messages
2016-12-14 02:20:15inada.naokicreate