This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mgorny, serhiy.storchaka
Date 2018-01-06.08:43:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
PySequence_Length(o) is equivalent to the Python expression len(o) only if o is a sequence. dict is not a sequence. You must use a correct API:

PyObject_Size() -- for general objects.
PyMapping_Size() -- if the object is a mapping.
PyDict_Size() -- if the object is a concrete dict.
Date User Action Args
2018-01-06 08:43:49serhiy.storchakasetrecipients: + serhiy.storchaka, mgorny
2018-01-06 08:43:49serhiy.storchakasetmessageid: <>
2018-01-06 08:43:49serhiy.storchakalinkissue32500 messages
2018-01-06 08:43:49serhiy.storchakacreate