Sped union by a factor of 3-4.

This commit is contained in:
Tim Peters 2002-08-25 19:21:27 +00:00
parent d33e6be59d
commit 37faed2532
1 changed files with 2 additions and 1 deletions

View File

@ -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