mirror of https://github.com/python/cpython
Merge with r60683.
This commit is contained in:
parent
c2bc0d17e8
commit
2e827bfdfe
|
@ -173,9 +173,9 @@ class Set(Sized, Iterable, Container):
|
||||||
'''Construct an instance of the class from any iterable input.
|
'''Construct an instance of the class from any iterable input.
|
||||||
|
|
||||||
Must override this method if the class constructor signature
|
Must override this method if the class constructor signature
|
||||||
will not accept a frozenset for an input.
|
does not accept an iterable for an input.
|
||||||
'''
|
'''
|
||||||
return cls(frozenset(it))
|
return cls(it)
|
||||||
|
|
||||||
def __and__(self, other):
|
def __and__(self, other):
|
||||||
if not isinstance(other, Iterable):
|
if not isinstance(other, Iterable):
|
||||||
|
|
Loading…
Reference in New Issue