[issue2778] set_swap_bodies is unsafe
Adam Olsen
report at bugs.python.org
Wed May 14 19:08:10 CEST 2008
Adam Olsen <rhamph at gmail.com> added the comment:
Revised again. sets are only hashed after PyObject_Hash raises a TypeError.
This also fixes a regression in test_subclass_with_custom_hash. Oddly,
it doesn't show up in trunk, but does when my previous patch is applied
to py3k.
Added file: http://bugs.python.org/file10321/python-setswap-3.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2778>
__________________________________
More information about the Python-bugs-list
mailing list