summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-09 03:25:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-02-09 03:25:08 (GMT)
commit7aebb64bab2ef75c6d9ae55da9ae7049f05c8670 (patch)
treee91905e2145e8adcf2deb82ab4abf6c17722e94d /Lib
parent74b6495b344303a84bf5e51ff388d8200dad4f64 (diff)
downloadcpython-7aebb64bab2ef75c6d9ae55da9ae7049f05c8670.zip
cpython-7aebb64bab2ef75c6d9ae55da9ae7049f05c8670.tar.gz
cpython-7aebb64bab2ef75c6d9ae55da9ae7049f05c8670.tar.bz2
Document how to use Set and MutableSet as a mixin.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/_abcoll.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index 113507a..c241a95 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -207,9 +207,9 @@ class Set(Sized, Iterable, Container):
'''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.
+ does not accept an iterable for an input.
'''
- return cls(frozenset(it))
+ return cls(it)
def __and__(self, other):
if not isinstance(other, Iterable):