[issue2778] set_swap_bodies is unsafe

Adam Olsen report at bugs.python.org
Wed May 7 22:11:49 CEST 2008


Adam Olsen <rhamph at gmail.com> added the comment:

The intended use is unsafe.  contains, remove, and discard all use it
for a lookup, which can't be fixed.

Upon further inspection, intersection_update is fine.  Only a temporary
set (not frozenset!) is given junk, which I don't see as a problem.

If someone can confirm that contains/remove/discard's usage is an
artifact I'll submit a patch that removes it.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2778>
__________________________________


More information about the Python-bugs-list mailing list