Xiang Zhang added the comment: Currently dict iterator does not allow size changed during iteration. This is more strict than list iterator but still allow modification during iteration. Maybe we could deny all modification by checking dict->ma_version_tag. But that's irrelevant to this issue.
Serhiy, this means the iternext* functions all get UB. These codes existed even in 3.3. Do we really need to eliminate them now? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28580> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com