[issue4069] set.remove raises confusing KeyError

2008-10-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Committed r66836 (trunk) and r66837 (2.6). This will merge nicely into py3k. Hello Carl Friedrich, and thanks for the report! -- resolution: accepted -> fixed status: open -> closed ___ Pyth

[issue4069] set.remove raises confusing KeyError

2008-10-07 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Patch looks fine. I see no need to backport to 2.5 though. -- assignee: rhettinger -> amaury.forgeotdarc keywords: -needs review resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED]>

[issue4069] set.remove raises confusing KeyError

2008-10-07 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4069] set.remove raises confusing KeyError

2008-10-07 Thread Amaury Forgeot d'Arc
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 o

[issue4069] set.remove raises confusing KeyError

2008-10-07 Thread Carl Friedrich Bolz
New submission from Carl Friedrich Bolz <[EMAIL PROTECTED]>: When trying to remove a set from a set, the KeyError that is raised is confusing: Python 2.6 (r26:66714, Oct 7 2008, 13:23:57) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more inf