Marc-Andre Lemburg added the comment: Ah, I hadn't noticed that you're actually manipulating the input dictionary. You should create a copy and fix that instead of changing the dict that the user passed in to the function.
You can then use PyDict_Next() for fast iteration over the original dictionary. __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1071> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com