]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Closes SF bug #628246.
authorRaymond Hettinger <python@rcn.com>
Fri, 8 Nov 2002 05:03:21 +0000 (05:03 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 8 Nov 2002 05:03:21 +0000 (05:03 +0000)
commit1eb1fb814b4d5ea12dcffd18bb132a1313a48ccf
tree896d6c9b5f20d362f784cb2ea59ad74d08ffe017
parentdde800ec4ee704d0c4d6d0b60d74e72e0ea834d8
Closes SF bug #628246.

The _update method detected mutable elements by trapping TypeErrors.
Unfortunately, this masked useful TypeErrors raised by the iterable
itself.  For cases where it is possible for an iterable to raise
a TypeError, the iterable is pre-converted to a list outside the
try/except so that any TypeErrors propagate through.
Lib/sets.py
Lib/test/test_sets.py