Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f5f0c17

Browse files
committed
end-of-sentence punctuation comes *before* \footnote, not after
1 parent dfa7bd9 commit f5f0c17

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

Doc/lib/libpickle.tex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,15 @@ \subsection{Usage}
320320
same number of calls to the \method{load()} method of the
321321
corresponding \class{Unpickler} instance. If the same object is
322322
pickled 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
324324
is intended for pickling multiple objects without intervening
325325
modifications to the objects or their parts. If you modify an object
326326
and then pickle it again using the same \class{Pickler} instance, the
327327
object is not pickled again --- a reference to it is pickled and the
328328
\class{Unpickler} will return the old value, not the modified one.
329329
There are two problems here: (1) detecting changes, and (2)
330330
marshalling 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?}
402402
is defined in. Neither the function's code, nor any of its function
403403
attributes are pickled. Thus the defining module must be importable
404404
in 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
406406
raised 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

409409
Similarly, classes are pickled by named reference, so the same
410410
restrictions in the unpickling environment apply. Note that none of
@@ -472,8 +472,8 @@ \subsubsection{Pickling and unpickling normal class
472472

473473
Upon 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
477477
pickled state must be a dictionary and its items are assigned to the
478478
new 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}
552552
which is just an arbitrary string of printable \ASCII{} characters.
553553
The resolution of such names is not defined by the \module{pickle}
554554
module; 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
556556
associating these user defined functions is slightly different for
557557
\module{pickle} and \module{cPickle}. The description given here
558558
works the same for both implementations. Users of the \module{pickle}
559559
module could also use subclassing to effect the same results,
560560
overriding the \method{persistent_id()} and \method{persistent_load()}
561-
methods in the derived classes.}.
561+
methods in the derived classes.}
562562

563563
To 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}
632632
persistent id string will simply be appended to this list. This
633633
functionality exists so that a pickle data stream can be ``sniffed''
634634
for 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
638638
the \method{noload()} method on the Unpickler.
639639

@@ -652,7 +652,7 @@ \subsection{Subclassing Unpicklers \label{pickle-sub}}
652652
mechanisms described here use internal attributes and methods, which
653653
are subject to change in future versions of Python. We intend to
654654
someday 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

657657
In 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}}
790790
The 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
794794
stack-oriented programming language, and some freedom is taken in the
795795
encodings of certain objects, it is possible that the two modules
796796
produce different data streams for the same input objects. However it
797797
is guaranteed that they will always be able to read each other's
798-
data streams.}.
798+
data streams.}
799799

800800
There are additional minor differences in API between \module{cPickle}
801801
and \module{pickle}, however for most applications, they are

0 commit comments

Comments
 (0)