@@ -320,15 +320,15 @@ \subsection{Usage}
320320same number of calls to the \method {load()} method of the
321321corresponding \class {Unpickler} instance. If the same object is
322322pickled by multiple \method {dump()} calls, the \method {load()} will
323- all yield references to the same object\footnote {\emph {Warning }: this
323+ all yield references to the same object. \footnote {\emph {Warning }: this
324324is intended for pickling multiple objects without intervening
325325modifications to the objects or their parts. If you modify an object
326326and then pickle it again using the same \class {Pickler} instance, the
327327object is not pickled again --- a reference to it is pickled and the
328328\class {Unpickler} will return the old value, not the modified one.
329329There are two problems here: (1) detecting changes, and (2)
330330marshalling a minimal set of changes. Garbage Collection may also
331- become a problem here.}.
331+ become a problem here.}
332332
333333\class {Unpickler} objects are defined as:
334334
@@ -402,9 +402,9 @@ \subsection{What can be pickled and unpickled?}
402402is defined in. Neither the function's code, nor any of its function
403403attributes are pickled. Thus the defining module must be importable
404404in the unpickling environment, and the module must contain the named
405- object, otherwise an exception will be raised\footnote {The exception
405+ object, otherwise an exception will be raised. \footnote {The exception
406406raised will likely be an \exception {ImportError} or an
407- \exception {AttributeError} but it could be something else.}.
407+ \exception {AttributeError} but it could be something else.}
408408
409409Similarly, classes are pickled by named reference, so the same
410410restrictions in the unpickling environment apply. Note that none of
@@ -472,8 +472,8 @@ \subsubsection{Pickling and unpickling normal class
472472
473473Upon unpickling, if the class also defines the method
474474\method {__setstate__()}, it is called with the unpickled
475- state\footnote {These methods can also be used to implement copying
476- class instances.}. If there is no \method {__setstate__()} method, the
475+ state. \footnote {These methods can also be used to implement copying
476+ class instances.} If there is no \method {__setstate__()} method, the
477477pickled state must be a dictionary and its items are assigned to the
478478new instance's dictionary. If a class defines both
479479\method {__getstate__()} and \method {__setstate__()}, the state object
@@ -552,13 +552,13 @@ \subsubsection{Pickling and unpickling external objects}
552552which is just an arbitrary string of printable \ASCII {} characters.
553553The resolution of such names is not defined by the \module {pickle}
554554module; it will delegate this resolution to user defined functions on
555- the pickler and unpickler\footnote {The actual mechanism for
555+ the pickler and unpickler. \footnote {The actual mechanism for
556556associating these user defined functions is slightly different for
557557\module {pickle} and \module {cPickle}. The description given here
558558works the same for both implementations. Users of the \module {pickle}
559559module could also use subclassing to effect the same results,
560560overriding the \method {persistent_id()} and \method {persistent_load()}
561- methods in the derived classes.}.
561+ methods in the derived classes.}
562562
563563To define external persistent id resolution, you need to set the
564564\member {persistent_id} attribute of the pickler object and the
@@ -632,8 +632,8 @@ \subsubsection{Pickling and unpickling external objects}
632632persistent id string will simply be appended to this list. This
633633functionality exists so that a pickle data stream can be `` sniffed''
634634for object references without actually instantiating all the objects
635- in a pickle\footnote {We'll leave you with the image of Guido and Jim
636- sitting around sniffing pickles in their living rooms.}. Setting
635+ in a pickle. \footnote {We'll leave you with the image of Guido and Jim
636+ sitting around sniffing pickles in their living rooms.} Setting
637637\member {persistent_load} to a list is usually used in conjunction with
638638the \method {noload()} method on the Unpickler.
639639
@@ -652,7 +652,7 @@ \subsection{Subclassing Unpicklers \label{pickle-sub}}
652652mechanisms described here use internal attributes and methods, which
653653are subject to change in future versions of Python. We intend to
654654someday provide a common interface for controlling this behavior,
655- which will work in either \module {pickle} or \module {cPickle}.}.
655+ which will work in either \module {pickle} or \module {cPickle}.}
656656
657657In the \module {pickle} module, you need to derive a subclass from
658658\class {Unpickler}, overriding the \method {load_global()}
@@ -790,12 +790,12 @@ \section{\module{cPickle} --- A faster \module{pickle}}
790790The pickle data stream produced by \module {pickle} and
791791\module {cPickle} are identical, so it is possible to use
792792\module {pickle} and \module {cPickle} interchangeably with existing
793- pickles\footnote {Since the pickle data format is actually a tiny
793+ pickles. \footnote {Since the pickle data format is actually a tiny
794794stack-oriented programming language, and some freedom is taken in the
795795encodings of certain objects, it is possible that the two modules
796796produce different data streams for the same input objects. However it
797797is guaranteed that they will always be able to read each other's
798- data streams.}.
798+ data streams.}
799799
800800There are additional minor differences in API between \module {cPickle}
801801and \module {pickle}, however for most applications, they are
0 commit comments