From: Raymond Hettinger Date: Mon, 11 Aug 2003 23:43:04 +0000 (+0000) Subject: SF patch#786531 'the the' typo. Contributed by George Yoshida X-Git-Tag: v2.3.1~159 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=107638e86185d09a782419f1b8a37d32e10d955d;p=thirdparty%2FPython%2Fcpython.git SF patch#786531 'the the' typo. Contributed by George Yoshida --- diff --git a/Doc/api/init.tex b/Doc/api/init.tex index f7d797c939ed..c3c7a1a2a616 100644 --- a/Doc/api/init.tex +++ b/Doc/api/init.tex @@ -780,7 +780,7 @@ previous versions. \end{cfuncdesc} \begin{cfuncdesc}{void}{PyEval_SetTrace}{Py_tracefunc func, PyObject *obj} - Set the the tracing function to \var{func}. This is similar to + Set the tracing function to \var{func}. This is similar to \cfunction{PyEval_SetProfile()}, except the tracing function does receive line-number events. \end{cfuncdesc} diff --git a/Doc/ext/newtypes.tex b/Doc/ext/newtypes.tex index cd5fe55ed1f7..ed42fa93b076 100644 --- a/Doc/ext/newtypes.tex +++ b/Doc/ext/newtypes.tex @@ -1407,7 +1407,7 @@ Python. In order to learn how to implement any specific method for your new datatype, do the following: Download and unpack the Python source -distribution. Go the the \file{Objects} directory, then search the +distribution. Go the \file{Objects} directory, then search the C source files for \code{tp_} plus the function you want (for example, \code{tp_print} or \code{tp_compare}). You will find examples of the function you want to implement. diff --git a/Doc/lib/libcgi.tex b/Doc/lib/libcgi.tex index 67e93b4d6324..055f66cafa21 100644 --- a/Doc/lib/libcgi.tex +++ b/Doc/lib/libcgi.tex @@ -101,7 +101,7 @@ dictionary, and also supports the standard dictionary methods \method{has_key()} and \method{keys()}. The built-in \function{len()} is also supported. Form fields containing empty strings are ignored and do not appear in the dictionary; to keep such values, provide -a true value for the the optional \var{keep_blank_values} keyword +a true value for the optional \var{keep_blank_values} keyword parameter when creating the \class{FieldStorage} instance. For instance, the following code (which assumes that the diff --git a/Doc/lib/libcodecs.tex b/Doc/lib/libcodecs.tex index b87ed39986ba..a49d24e23bd7 100644 --- a/Doc/lib/libcodecs.tex +++ b/Doc/lib/libcodecs.tex @@ -505,7 +505,7 @@ the \function{lookup()} function to construct the instance. \var{encode}, \var{decode} must adhere to the \class{Codec} interface, \var{Reader}, \var{Writer} must be factory functions or - classes providing objects of the the \class{StreamReader} and + classes providing objects of the \class{StreamReader} and \class{StreamWriter} interface respectively. \var{encode} and \var{decode} are needed for the frontend diff --git a/Doc/lib/libcurses.tex b/Doc/lib/libcurses.tex index a79e02c93817..296e8874fcaf 100644 --- a/Doc/lib/libcurses.tex +++ b/Doc/lib/libcurses.tex @@ -337,7 +337,7 @@ occur. The \method{refresh()} and \method{noutrefresh()} methods of a pad require 6 arguments to specify the part of the pad to be displayed and the location on the screen to be used for the display. The arguments are pminrow, pmincol, sminrow, smincol, smaxrow, -smaxcol; the p arguments refer to the upper left corner of the the pad +smaxcol; the p arguments refer to the upper left corner of the pad region to be displayed and the s arguments define a clipping box on the screen within which the pad region is to be displayed. \end{funcdesc} @@ -790,7 +790,7 @@ before the character under the cursor, up to \var{n} characters. If \var{n} is zero or negative, the entire string is inserted. All characters to the right of -the cursor are shifted right, with the the rightmost characters on the +the cursor are shifted right, with the rightmost characters on the line being lost. The cursor position does not change (after moving to \var{y}, \var{x}, if specified). \end{methoddesc} @@ -798,7 +798,7 @@ line being lost. The cursor position does not change (after moving to \begin{methoddesc}[window]{insstr}{\optional{y, x, } str \optional{, attr}} Insert a character string (as many characters as will fit on the line) before the character under the cursor. All characters to the right of -the cursor are shifted right, with the the rightmost characters on the +the cursor are shifted right, with the rightmost characters on the line being lost. The cursor position does not change (after moving to \var{y}, \var{x}, if specified). \end{methoddesc} diff --git a/Doc/lib/libdoctest.tex b/Doc/lib/libdoctest.tex index 62ff5876a14a..a9ef835731ac 100644 --- a/Doc/lib/libdoctest.tex +++ b/Doc/lib/libdoctest.tex @@ -199,7 +199,7 @@ imported into the module are not searched. In addition, if \code{M.__test__} exists and "is true", it must be a dict, and each entry maps a (string) name to a function object, class object, or string. Function and class object docstrings found from -\code{M.__test__} are searched even if the the tester has been +\code{M.__test__} are searched even if the tester has been directed to skip over private names in the rest of the module. In output, a key \code{K} in \code{M.__test__} appears with name diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index b9dc4e1b57b8..ab477568b84e 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -68,7 +68,7 @@ def my_import(name): is the length of the tuple. If the optional \var{keywords} argument is present, it must be a dictionary whose keys are strings. It specifies keyword arguments - to be added to the end of the the argument list. + to be added to the end of the argument list. Calling \function{apply()} is different from just calling \code{\var{function}(\var{args})}, since in that case there is always exactly one argument. The use of \function{apply()} is equivalent diff --git a/Doc/lib/libgettext.tex b/Doc/lib/libgettext.tex index ace719f8a713..274f2eab9b86 100644 --- a/Doc/lib/libgettext.tex +++ b/Doc/lib/libgettext.tex @@ -391,7 +391,7 @@ print _('hello world') \end{verbatim} For compatibility with this older module, the function -\function{Catalog()} is an alias for the the \function{translation()} +\function{Catalog()} is an alias for the \function{translation()} function described above. One difference between this module and Henstridge's: his catalog diff --git a/Doc/lib/libpickle.tex b/Doc/lib/libpickle.tex index 6190bdcf8a38..cd184f493c48 100644 --- a/Doc/lib/libpickle.tex +++ b/Doc/lib/libpickle.tex @@ -657,7 +657,7 @@ which will work in either \module{pickle} or \module{cPickle}.}. In the \module{pickle} module, you need to derive a subclass from \class{Unpickler}, overriding the \method{load_global()} method. \method{load_global()} should read two lines from the pickle -data stream where the first line will the the name of the module +data stream where the first line will the name of the module containing the class and the second line will be the name of the instance's class. It then looks up the class, possibly importing the module and digging out the attribute, then it appends what it finds to diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex index 4f1bf882d89c..a78fbc3b7c5c 100644 --- a/Doc/lib/libre.tex +++ b/Doc/lib/libre.tex @@ -740,7 +740,7 @@ Without arguments, \var{group1} defaults to zero (the whole match is returned). If a \var{groupN} argument is zero, the corresponding return value is the entire matching string; if it is in the inclusive range [1..99], it is -the string matching the the corresponding parenthesized group. If a +the string matching the corresponding parenthesized group. If a group number is negative or larger than the number of groups defined in the pattern, an \exception{IndexError} exception is raised. If a group is contained in a part of the pattern that did not match, diff --git a/Doc/lib/libstdwin.tex b/Doc/lib/libstdwin.tex index a75edf67111f..5170222fdc17 100644 --- a/Doc/lib/libstdwin.tex +++ b/Doc/lib/libstdwin.tex @@ -393,7 +393,7 @@ On X11, there are many more (see \code{}). \end{methoddesc} \begin{methoddesc}[window]{setwinpos}{h, v} -Set the the position of the window's upper left corner (relative to +Set the position of the window's upper left corner (relative to the upper left corner of the screen). \end{methoddesc} diff --git a/Doc/mac/libframework.tex b/Doc/mac/libframework.tex index 8723d7302e8d..c4d0ef90d492 100644 --- a/Doc/mac/libframework.tex +++ b/Doc/mac/libframework.tex @@ -174,7 +174,7 @@ application-wide handler if the window is frontmost. \begin{methoddesc}[Application]{do_dialogevent}{event} Called early in the event loop to handle modeless dialog events. The default method simply dispatches the event to the relevant dialog (not -through the the \code{DialogWindow} object involved). Override if you +through the \code{DialogWindow} object involved). Override if you need special handling of dialog events (keyboard shortcuts, etc). \end{methoddesc} diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex index 0a26d6b37f0f..1dcf5c3ebc2e 100644 --- a/Doc/tut/tut.tex +++ b/Doc/tut/tut.tex @@ -4485,7 +4485,7 @@ This binds the \kbd{Tab} key to the completion function, so hitting the \kbd{Tab} key twice suggests completions; it looks at Python statement names, the current local variables, and the available module names. For dotted expressions such as \code{string.a}, it will -evaluate the the expression up to the final \character{.} and then +evaluate the expression up to the final \character{.} and then suggest completions from the attributes of the resulting object. Note that this may execute application-defined code if an object with a \method{__getattr__()} method is part of the expression.