Sam De Meyer added the comment:
You seem to be right, my object was lacking the keys method.
Please excuse me for the false alarm, and thanks for pointing it out.
--
stage: -> resolved
status: open -> closed
___
Python tracker
New submission from Sam De Meyer:
According to the docs (https://docs.python.org/3/c-api/object.html) the
`PyObject_GetIter` method should be equivalent to the python call
`iter()`, but, when given a dict, the `PyObject_GetIter` returns an
iterator over key-value pairs whereas the `iter