diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-29 20:04:23 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-03-29 20:04:23 (GMT) |
commit | e6410c536c9dca5a3a7899888c071f41a1767291 (patch) | |
tree | a654e088538f3ca6b1b78aa3a2f2c95315124852 /Doc | |
parent | b8d688cd7c8b7d267cb84f2431457b71e52628fb (diff) | |
download | cpython-e6410c536c9dca5a3a7899888c071f41a1767291.zip cpython-e6410c536c9dca5a3a7899888c071f41a1767291.tar.gz cpython-e6410c536c9dca5a3a7899888c071f41a1767291.tar.bz2 |
Backport of weakref.WeakSet and tests from Python 3.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/weakref.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 46bfc9d..9c65587 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -209,6 +209,14 @@ methods of :class:`WeakKeyDictionary` objects. .. versionadded:: 2.5 +.. class:: WeakSet([elements]) + + Set class that keeps weak references to its elements. An element will be + discarded when no strong reference to it exists any more. + + .. versionadded:: 2.7 + + .. data:: ReferenceType The type object for weak references objects. |