From: Raymond Hettinger Date: Thu, 7 Feb 2008 03:10:33 +0000 (+0000) Subject: Merge 60627. X-Git-Tag: v2.6a1~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=017b6a3ad2be5c0e3309fb016234397211d6ffa7;p=thirdparty%2FPython%2Fcpython.git Merge 60627. --- diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 0519d42335bf..6c27e66be5f4 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):