summaryrefslogtreecommitdiffstats
path: root/Doc/library/weakref.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/weakref.rst')
-rw-r--r--Doc/library/weakref.rst17
1 files changed, 1 insertions, 16 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst
index c5857ba..44f8d96 100644
--- a/Doc/library/weakref.rst
+++ b/Doc/library/weakref.rst
@@ -10,8 +10,6 @@
.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
-.. versionadded:: 2.1
-
The :mod:`weakref` module allows the Python programmer to create :dfn:`weak
references` to objects.
@@ -54,9 +52,6 @@ unbound), sets, frozensets, file objects, generators, type objects, DBcursor
objects from the :mod:`bsddb` module, sockets, arrays, deques, and regular
expression pattern objects.
-.. versionchanged:: 2.4
- Added support for files, sockets, arrays, and patterns.
-
Several builtin types such as :class:`list` and :class:`dict` do not directly
support weak references but can add support through subclassing::
@@ -97,9 +92,7 @@ Extension types can easily be made to support weak references; see
referents (regardless of the *callback*). If either referent has been deleted,
the references are equal only if the reference objects are the same object.
- .. versionchanged:: 2.4
- This is now a subclassable type rather than a factory function; it derives from
- :class:`object`.
+ This is a subclassable type rather than a factory function.
.. function:: proxy(object[, callback])
@@ -152,15 +145,11 @@ than needed.
Return an iterator that yields the weak references to the keys.
- .. versionadded:: 2.5
-
.. method:: WeakKeyDictionary.keyrefs()
Return a list of weak references to the keys.
- .. versionadded:: 2.5
-
.. class:: WeakValueDictionary([dict])
@@ -184,15 +173,11 @@ methods of :class:`WeakKeyDictionary` objects.
Return an iterator that yields the weak references to the values.
- .. versionadded:: 2.5
-
.. method:: WeakValueDictionary.valuerefs()
Return a list of weak references to the values.
- .. versionadded:: 2.5
-
.. data:: ReferenceType