[Python-checkins] cpython (3.2): #13426: fix typos in pickle doc.

ezio.melotti python-checkins at python.org
Fri Nov 18 12:52:54 CET 2011


http://hg.python.org/cpython/rev/1f31061afdaf
changeset:   73603:1f31061afdaf
branch:      3.2
parent:      73586:738c43484b47
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Fri Nov 18 13:51:10 2011 +0200
summary:
  #13426: fix typos in pickle doc.

files:
  Doc/library/pickle.rst |  10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst
--- a/Doc/library/pickle.rst
+++ b/Doc/library/pickle.rst
@@ -237,7 +237,7 @@
 
 .. exception:: UnpicklingError
 
-   Error raised when there a problem unpickling an object, such as a data
+   Error raised when there is a problem unpickling an object, such as a data
    corruption or a security violation.  It inherits :exc:`PickleError`.
 
    Note that other exceptions may also be raised during unpickling, including
@@ -324,11 +324,11 @@
 
    .. method:: persistent_load(pid)
 
-      Raise an :exc:`UnpickingError` by default.
+      Raise an :exc:`UnpicklingError` by default.
 
       If defined, :meth:`persistent_load` should return the object specified by
       the persistent ID *pid*.  If an invalid persistent ID is encountered, an
-      :exc:`UnpickingError` should be raised.
+      :exc:`UnpicklingError` should be raised.
 
       See :ref:`pickle-persistent` for details and examples of uses.
 
@@ -377,7 +377,7 @@
 
 Note that functions (built-in and user-defined) are pickled by "fully qualified"
 name reference, not by value.  This means that only the function name is
-pickled, along with the name of module the function is defined in.  Neither the
+pickled, along with the name of the module the function is defined in.  Neither the
 function's code, nor any of its function attributes are pickled.  Thus the
 defining module must be importable in the unpickling environment, and the module
 must contain the named object, otherwise an exception will be raised. [#]_
@@ -668,7 +668,7 @@
 For this reason, you may want to control what gets unpickled by customizing
 :meth:`Unpickler.find_class`.  Unlike its name suggests, :meth:`find_class` is
 called whenever a global (i.e., a class or a function) is requested.  Thus it is
-possible to either forbid completely globals or restrict them to a safe subset.
+possible to either completely forbid globals or restrict them to a safe subset.
 
 Here is an example of an unpickler allowing only few safe classes from the
 :mod:`builtins` module to be loaded::

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list