mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Sped union by a factor of 3-4.
This commit is contained in:
parent
d33e6be59d
commit
37faed2532
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue