[Python-checkins] r60640 - python/trunk/Lib/_abcoll.py
raymond.hettinger
python-checkins at python.org
Thu Feb 7 04:10:33 CET 2008
Author: raymond.hettinger
Date: Thu Feb 7 04:10:33 2008
New Revision: 60640
Modified:
python/trunk/Lib/_abcoll.py
Log:
Merge 60627.
Modified: python/trunk/Lib/_abcoll.py
==============================================================================
--- python/trunk/Lib/_abcoll.py (original)
+++ python/trunk/Lib/_abcoll.py Thu Feb 7 04:10:33 2008
@@ -170,7 +170,12 @@
@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):
More information about the Python-checkins
mailing list