From: Tim Peters Date: Sun, 25 Aug 2002 19:21:27 +0000 (+0000) Subject: Sped union by a factor of 3-4. X-Git-Tag: v2.3c1~4289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37faed2532b3baf3b24cd4839aa5f5242b0c807d;p=python Sped union by a factor of 3-4. --- diff --git a/Lib/sets.py b/Lib/sets.py index e88e845c1f..10138fca5e 100644 --- a/Lib/sets.py +++ b/Lib/sets.py @@ -154,7 +154,8 @@ class BaseSet(object): """ if not isinstance(other, BaseSet): return NotImplemented - result = self.__class__(self._data) + result = self.__class__() + result._data = self._data.copy() result._data.update(other._data) return result