Commit 017b6a3a authored by Raymond Hettinger's avatar Raymond Hettinger

Merge 60627.

parent 55285ef4
......@@ -170,7 +170,12 @@ class Set:
@classmethod
def _from_iterable(cls, it):
return frozenset(it)
'''Construct an instance of the class from any iterable input.
Must override this method if the class constructor signature
will not accept a frozenset for an input.
'''
return cls(frozenset(it))
def __and__(self, other):
if not isinstance(other, Iterable):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment