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

Skip to content

Commit f0dfc7a

Browse files
committed
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751)
1 parent 4b17e39 commit f0dfc7a

43 files changed

Lines changed: 47 additions & 47 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Demo/metaclasses/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ <H2>Things You Could Do With Metaclasses</H2>
547547
all class variables<P>
548548

549549
<LI>Implement a different way to store instance variables (e.g. in a
550-
list kept outside the the instance but indexed by the instance's id())<P>
550+
list kept outside the instance but indexed by the instance's id())<P>
551551

552552
<LI>Automatically wrap or trap all or certain methods
553553

Doc/ext/newtypes.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ \subsection{Supporting cyclic garbage collection}
685685
In this example, we create a list that contains itself. When we delete
686686
it, it still has a reference from itself. It's reference count doesn't
687687
drop to zero. Fortunately, Python's cyclic-garbage collector will
688-
eventually figure out that that the list is garbage and free it.
688+
eventually figure out that the list is garbage and free it.
689689

690690
In the second version of the \class{Noddy} example, we allowed any
691691
kind of object to be stored in the \member{first} or \member{last}

Doc/lib/libprofile.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ \subsection{The \class{Stats} Class \label{profile-stats}}
407407
\code{'name'}).
408408

409409
When more than one key is provided, then additional keys are used as
410-
secondary criteria when the there is equality in all keys selected
410+
secondary criteria when there is equality in all keys selected
411411
before them. For example, \samp{sort_stats('name', 'file')} will sort
412412
all the entries according to their function name, and resolve all ties
413413
(identical function names) by sorting by file name.

Doc/lib/libregex.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ \subsection{Module Contents}
247247
\code{match()} and \code{search()}. (Already compiled expression
248248
objects are not affected.) The argument is an integer which is the
249249
OR of several flag bits. The return value is the previous value of
250-
the syntax flags. Names for the flags are defined in the standard
250+
the syntax flags. Names for the flags are defined in the standard
251251
module \code{regex_syntax}\refstmodindex{regex_syntax}; read the
252252
file \file{regex_syntax.py} for more information.
253253
\end{funcdesc}

Doc/ref/ref6.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ \section{Assignment statements \label{assignment}}
149149

150150
\item
151151
If the target list is a comma-separated list of targets: The object
152-
must be a sequence with the same number of items as the there are
152+
must be a sequence with the same number of items as there are
153153
targets in the target list, and the items are assigned, from left to
154154
right, to the corresponding targets. (This rule is relaxed as of
155155
Python 1.5; in earlier versions, the object had to be a tuple. Since

Doc/texinputs/python.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%
2-
% python.sty for the Python docummentation [works only with with Latex2e]
2+
% python.sty for the Python docummentation [works only with Latex2e]
33
%
44

55
\NeedsTeXFormat{LaTeX2e}[1995/12/01]

Doc/whatsnew/whatsnew20.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ \subsection{SAX2 Support}
10001000
\method{characters()} method is called for every chunk of character
10011001
data, and so forth.
10021002
1003-
The advantage of the event-driven approach is that that the whole
1003+
The advantage of the event-driven approach is that the whole
10041004
document doesn't have to be resident in memory at any one time, which
10051005
matters if you are processing really huge documents. However, writing
10061006
the SAX handler class can get very complicated if you're trying to

Include/abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
872872
PyAPI_FUNC(PyObject *) PyNumber_InPlaceOr(PyObject *o1, PyObject *o2);
873873

874874
/*
875-
Returns the result of bitwise or or o1 and o2, possibly in-place,
875+
Returns the result of bitwise or of o1 and o2, possibly in-place,
876876
or null on failure. This is the equivalent of the Python
877877
expression: o1 |= o2.
878878

Lib/ConfigParser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
class:
2121
22-
ConfigParser -- responsible for for parsing a list of
22+
ConfigParser -- responsible for parsing a list of
2323
configuration files, and managing the parsed database.
2424
2525
methods:

Lib/Cookie.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
Notice that the printable representation of a Cookie is the
7777
appropriate format for a Set-Cookie: header. This is the
7878
default behavior. You can change the header and printed
79-
attributes by using the the .output() function
79+
attributes by using the .output() function
8080
8181
>>> C = Cookie.SmartCookie()
8282
>>> C["rocky"] = "road"

0 commit comments

Comments
 (0)