Message309542
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:49 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, mgorny |
2018-01-06 08:43:49 | serhiy.storchaka | set | messageid: <1515228229.81.0.467229070634.issue32500@psf.upfronthosting.co.za> |
2018-01-06 08:43:49 | serhiy.storchaka | link | issue32500 messages |
2018-01-06 08:43:49 | serhiy.storchaka | create | |
|