diff options
author | Raymond Hettinger <python@rcn.com> | 2002-11-25 20:43:55 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2002-11-25 20:43:55 (GMT) |
commit | 35e48d2426e50306cb957da26777b1e3469c53b3 (patch) | |
tree | 65bbc08c8b4a46f639a8913befc092d30ebecc5f /Lib/sets.py | |
parent | 919000e9ec36c513f08253091b71a3aead2aff08 (diff) | |
download | cpython-35e48d2426e50306cb957da26777b1e3469c53b3.zip cpython-35e48d2426e50306cb957da26777b1e3469c53b3.tar.gz cpython-35e48d2426e50306cb957da26777b1e3469c53b3.tar.bz2 |
SF 643115: Set._update() had a special case for dictionaries which allowed
non-true values to leak in. This threw-off equality testing which depends
on the underlying dictionaries having both the same keys and values.
Diffstat (limited to 'Lib/sets.py')
-rw-r--r-- | Lib/sets.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/sets.py b/Lib/sets.py index 5dac370a..2605c98 100644 --- a/Lib/sets.py +++ b/Lib/sets.py @@ -315,9 +315,6 @@ class BaseSet(object): if isinstance(iterable, BaseSet): data.update(iterable._data) return - if isinstance(iterable, dict): - data.update(iterable) - return value = True |