[issue8435] It is possible to observe a mutating frozenset

2010-08-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8435 ___ ___ Python-bugs-list

[issue8435] It is possible to observe a mutating frozenset

2010-04-18 Thread Gath-Gealaich
Gath-Gealaich gathgeala...@gmail.com added the comment: I have found this in Python 3.1.2 documentation: Note, the elem argument to the __contains__(), remove(), and discard() methods may be a set. To support searching for an equivalent frozenset, the elem set is temporarily mutated during

[issue8435] It is possible to observe a mutating frozenset

2010-04-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thanks ggeal. Closing as won't fix. The code is functioning as designed and documented. -- resolution: - wont fix status: open - closed ___ Python tracker

[issue8435] It is possible to observe a mutating frozenset

2010-04-17 Thread Eugene Kapun
New submission from Eugene Kapun abacabadabac...@gmail.com: This code shows that frozensets aren't really immutable. The same frozenset is printed twice, with different content. Buggy functions are set_contains, set_remove and set_discard, all in Objects/setobject.c class bad: def

[issue8435] It is possible to observe a mutating frozenset

2010-04-17 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8435 ___

[issue8435] It is possible to observe a mutating frozenset

2010-04-17 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm not sure that I care about this one. The only way to pull it off it is to intentionally try to mutate the frozenset. Will look at it along with the others though. -- priority: - low