Serhiy Storchaka added the comment: Indeed, the PyDict_Check() check can be omitted. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue25856> _______________________________________