summaryrefslogtreecommitdiffstats
path: root/Doc/library/pickle.rst
diff options
context:
space:
mode:
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