mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Merge with r60683.
This commit is contained in:
parent
c2bc0d17e8
commit
2e827bfdfe
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue