From 017b6a3ad2be5c0e3309fb016234397211d6ffa7 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 7 Feb 2008 03:10:33 +0000 Subject: Merge 60627. --- Lib/_abcoll.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 0519d42..6c27e66 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py @@ -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): -- cgit v0.12