[issue30322] PyObject_GetIter does not behave as documented on dict objects

Serhiy Storchaka report at bugs.python.org
Tue May 9 16:35:36 EDT 2017


Serhiy Storchaka added the comment:

I can't believe in this since one-argument iter() just calls PyObject_GetIter().

dict.update() accepts either a dict-like object (which should have the keys() method) or an iterable producing key-value pairs. If your dict-like object doesn't work as expected, check that it has the keys() method.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30322>
_______________________________________


More information about the Python-bugs-list mailing list