Xiang Zhang added the comment: I didn't think about order. I just thought using concrete API may be faster. But after your comment, I tested the performance and it seems PyDict_Items makes it much slower (it does more work, eg, make tuples). So I agree it is not needed at all.
---------- Added file: http://bugs.python.org/file43879/odict_update_v2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27576> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com