summaryrefslogtreecommitdiffstats
path: root/Doc/library/pickle.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-09-01 13:51:09 (GMT)
committerGeorg Brandl <georg@python.org>2007-09-01 13:51:09 (GMT)
commit55ac8f0f26efdbbcb5cc197f9369d23d50bee908 (patch)
treea0d5b7128c055d8c767652dc3948c3404be06396 /Doc/library/pickle.rst
parent1617457cff847fed9fadb01f1acf6ba8bb621726 (diff)
downloadcpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.zip
cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.tar.gz
cpython-55ac8f0f26efdbbcb5cc197f9369d23d50bee908.tar.bz2
Get rid of the remaining versionadded/versionchanged directives.
Diffstat (limited to 'Doc/library/pickle.rst')
-rw-r--r--Doc/library/pickle.rst19
1 files changed, 1 insertions, 18 deletions
diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst
index 1872724..844e9c4 100644
--- a/Doc/library/pickle.rst
+++ b/Doc/library/pickle.rst
@@ -130,9 +130,6 @@ If a *protocol* is not specified, protocol 0 is used. If *protocol* is specified
as a negative value or :const:`HIGHEST_PROTOCOL`, the highest protocol version
available will be used.
-.. versionchanged:: 2.3
- Introduced the *protocol* parameter.
-
A binary format, which is slightly more efficient, can be chosen by specifying a
*protocol* version >= 1.
@@ -151,8 +148,6 @@ an unpickler, then you call the unpickler's :meth:`load` method. The
The highest protocol version available. This value can be passed as a
*protocol* value.
- .. versionadded:: 2.3
-
.. note::
Be sure to always open pickle files created with protocols >= 1 in binary mode.
@@ -176,9 +171,6 @@ process more convenient:
specified as a negative value or :const:`HIGHEST_PROTOCOL`, the highest protocol
version will be used.
- .. versionchanged:: 2.3
- Introduced the *protocol* parameter.
-
*file* must have a :meth:`write` method that accepts a single string argument.
It can thus be a file object opened for writing, a :mod:`StringIO` object, or
any other custom object that meets this interface.
@@ -209,9 +201,6 @@ process more convenient:
specified as a negative value or :const:`HIGHEST_PROTOCOL`, the highest protocol
version will be used.
- .. versionchanged:: 2.3
- The *protocol* parameter was added.
-
.. function:: loads(string)
@@ -252,9 +241,6 @@ The :mod:`pickle` module also exports two callables [#]_, :class:`Pickler` and
specified as a negative value or :const:`HIGHEST_PROTOCOL`, the highest
protocol version will be used.
- .. versionchanged:: 2.3
- Introduced the *protocol* parameter.
-
*file* must have a :meth:`write` method that accepts a single string argument.
It can thus be an open file object, a :mod:`StringIO` object, or any other
custom object that meets this interface.
@@ -494,10 +480,7 @@ value. The semantics of each element are:
:exc:`UnpicklingError` will be raised in the unpickling environment. Note that
as usual, the callable itself is pickled by name.
-* A tuple of arguments for the callable object.
-
- .. versionchanged:: 2.5
- Formerly, this argument could also be ``None``.
+* A tuple of arguments for the callable object, not ``None``.
* Optionally, the object's state, which will be passed to the object's
:meth:`__setstate__` method as described in section :ref:`pickle-inst`. If the