You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following codes causes that subclasses of "class dict" (such as OrderedDict) do not work:
if (PyDict_Check(current.object))
// If it's a standard dictionary, this is +20% faster
rc = PyDict_SetItem(current.object, key, value);
else
rc = PyObject_SetItem(current.object, key, value);
Activity
lelit commentedon Mar 17, 2019
Thanks for the report.
Surprisingly, using
PyDict_SetItem()on dict subclass such asOrderedDictresults in a incomplete dictionary:Add failing test on issue #119
Use PyDict_CheckExact() to discriminate plain dictionaries from subcl…
spritetong commentedon Mar 17, 2019
Thank you for your reply.
>>> a == {"foo": "bar"}TrueI think because
dict.__eq__()method is not overrided by OrderedDict.lelit commentedon May 11, 2019
Solved in v0.7.1.