Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The KeyError initially contains the correct frozenset, but its content is swapped with the original set object (yes, like C++ std::set::swap(), this mutates the frozenset!).
Attached a patch with unit test. The exception now shows the original key: KeyError: {3, 4} ---------- keywords: +needs review, patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file11733/set_remove.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4069> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com