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

Skip to content

Commit 6880431

Browse files
committed
SF Patch #1093896: miscellaneous doc typos
1 parent f871d83 commit 6880431

60 files changed

Lines changed: 103 additions & 102 deletions

Some content is hidden

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

Doc/api/intro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ \subsubsection{Reference Count Details \label{refcountDetails}}
277277
The situation is slightly different for function return values.
278278
While passing a reference to most functions does not change your
279279
ownership responsibilities for that reference, many functions that
280-
return a referece to an object give you ownership of the reference.
280+
return a reference to an object give you ownership of the reference.
281281
The reason is simple: in many cases, the returned object is created
282282
on the fly, and the reference you get is the only reference to the
283283
object. Therefore, the generic functions that return object

Doc/api/memory.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ \section{Memory Interface \label{memoryInterface}}
134134
In addition, the following macro sets are provided for calling the
135135
Python memory allocator directly, without involving the C API functions
136136
listed above. However, note that their use does not preserve binary
137-
compatibility accross Python versions and is therefore deprecated in
137+
compatibility across Python versions and is therefore deprecated in
138138
extension modules.
139139

140140
\cfunction{PyMem_MALLOC()}, \cfunction{PyMem_REALLOC()}, \cfunction{PyMem_FREE()}.

Doc/dist/dist.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
build/release/install mechanics.
3535
\end{abstract}
3636

37-
% The ugly "%begin{latexonly}" pseudo-environment supresses the table
37+
% The ugly "%begin{latexonly}" pseudo-environment suppresses the table
3838
% of contents for HTML generation.
3939
%
4040
%begin{latexonly}
@@ -965,7 +965,7 @@ \chapter{Writing the Setup Configuration File}
965965
\end{verbatim}
966966

967967
This will affect all builds of this module distribution, whether or not
968-
you explcitly specify \command{build\_ext}. If you include
968+
you explicitly specify \command{build\_ext}. If you include
969969
\file{setup.cfg} in your source distribution, it will also affect
970970
end-user builds---which is probably a bad idea for this option, since
971971
always building extensions in-place would break installation of the
@@ -2521,7 +2521,7 @@ \section{\module{distutils.ccompiler} --- CCompiler base class}
25212521
\var{extra_preargs} and \var{extra_postargs} are implementation- dependent.
25222522
On platforms that have the notion of a command-line (e.g. \UNIX,
25232523
DOS/Windows), they are most likely lists of strings: extra
2524-
command-line arguments to prepand/append to the compiler command
2524+
command-line arguments to prepend/append to the compiler command
25252525
line. On other platforms, consult the implementation class
25262526
documentation. In any event, they are intended as an escape hatch
25272527
for those occasions when the abstract compiler framework doesn't

Doc/doc/doc.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ \section{Style Guide \label{style-guide}}
204204
For ``central processing unit.'' Many style guides say this
205205
should be spelled out on the first use (and if you must use it,
206206
do so!). For the Python documentation, this abbreviation should
207-
be avoided since there's no reasonable way to predict which occurance
207+
be avoided since there's no reasonable way to predict which occurrence
208208
will be the first seen by the reader. It is better to use the
209209
word ``processor'' instead.
210210

@@ -471,7 +471,7 @@ \section{\LaTeX{} Primer \label{latex-primer}}
471471

472472
\LaTeX{} provides a variety of environments even without the
473473
additional markup provided by the Python-specific document classes
474-
introducted in the next section. The following environments are
474+
introduced in the next section. The following environments are
475475
provided as part of standard \LaTeX{} and are being used in the
476476
standard Python documentation; descriptions will be added here as
477477
time allows.
@@ -651,7 +651,7 @@ \section{Special Markup Constructs \label{special-constructs}}
651651
\end{envdesc}
652652

653653
\begin{envdesc}{excclassdesc}{\p{name}\p{constructor parameters}}
654-
Descibe an exception defined by a class. \var{constructor
654+
Describe an exception defined by a class. \var{constructor
655655
parameters} should not include the \var{self} parameter or
656656
the parentheses used in the call syntax. To describe an
657657
exception class without describing the parameters to its
@@ -830,7 +830,7 @@ \section{Special Markup Constructs \label{special-constructs}}
830830
with release \var{version}. The text given as \var{what to do}
831831
should recommend something to use instead. It should be
832832
complete sentences. The entire deprecation notice will be
833-
presented as a separate paragraph; it should either preceed or
833+
presented as a separate paragraph; it should either precede or
834834
succeed the description of the deprecated feature.
835835
\end{macrodesc}
836836

@@ -1122,7 +1122,7 @@ \section{Special Markup Constructs \label{special-constructs}}
11221122

11231123
\begin{envdesc}{notice}{\op{type}}
11241124
Label some paragraphs as being worthy of additional attention from
1125-
the reader. What sort of attention is warrented can be indicated
1125+
the reader. What sort of attention is warranted can be indicated
11261126
by specifying the \var{type} of the notice. The only values
11271127
defined for \var{type} are \code{note} and \code{warning}; these
11281128
are equivalent in intent to the inline markup of the same name.
@@ -1660,7 +1660,7 @@ \section{\module{bar.foo} ---
16601660
\begin{envdesc}{productionlist}{\op{language}}
16611661
This environment is used to enclose a group of productions. The
16621662
two macros are only defined within this environment. If a
1663-
document descibes more than one language, the optional parameter
1663+
document describes more than one language, the optional parameter
16641664
\var{language} should be used to distinguish productions between
16651665
languages. The value of the parameter should be a short name
16661666
that can be used as part of a filename; colons or other
@@ -1731,7 +1731,7 @@ \subsection{Graphical Interface Components \label{gui-markup}}
17311731
a complete sequence of menu selections, including selecting
17321732
submenus and choosing a specific operation, or any subsequence of
17331733
such a sequence. The names of individual selections should be
1734-
separated by occurances of \macro{sub}.
1734+
separated by occurrences of \macro{sub}.
17351735

17361736
For example, to mark the selection ``\menuselection{Start \sub
17371737
Programs}'', use this markup:
@@ -2080,7 +2080,7 @@ \section{Future Directions \label{futures}}
20802080
fairly rough.
20812081

20822082
The timeframe for the conversion is not clear since there doesn't
2083-
seem to be much time available to work on this, but the appearant
2083+
seem to be much time available to work on this, but the apparent
20842084
benefits are growing more substantial at a moderately rapid pace.
20852085

20862086

Doc/ext/extending.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ \section{A Simple Example
2323
of Monty Python fans...) and let's say we want to create a Python
2424
interface to the C library function \cfunction{system()}.\footnote{An
2525
interface for this function already exists in the standard module
26-
\module{os} --- it was chosen as a simple and straightfoward example.}
26+
\module{os} --- it was chosen as a simple and straightforward example.}
2727
This function takes a null-terminated character string as argument and
2828
returns an integer. We want this function to be callable from Python
2929
as follows:
@@ -1002,8 +1002,8 @@ \subsection{Ownership Rules
10021002
\cfunction{Py_INCREF()}.
10031003

10041004
The object reference returned from a C function that is called from
1005-
Python must be an owned reference --- ownership is tranferred from the
1006-
function to its caller.
1005+
Python must be an owned reference --- ownership is transferred from
1006+
the function to its caller.
10071007

10081008

10091009
\subsection{Thin Ice
@@ -1147,7 +1147,7 @@ \section{Writing Extensions in \Cpp
11471147
linked by the C compiler, global or static objects with constructors
11481148
cannot be used. This is not a problem if the main program is linked
11491149
by the \Cpp{} compiler. Functions that will be called by the
1150-
Python interpreter (in particular, module initalization functions)
1150+
Python interpreter (in particular, module initialization functions)
11511151
have to be declared using \code{extern "C"}.
11521152
It is unnecessary to enclose the Python header files in
11531153
\code{extern "C" \{...\}} --- they use this form already if the symbol

Doc/inst/inst.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
%\end{abstract}
4545

4646

47-
% The ugly "%begin{latexonly}" pseudo-environment supresses the table
47+
% The ugly "%begin{latexonly}" pseudo-environment suppresses the table
4848
% of contents for HTML generation.
4949
%
5050
%begin{latexonly}

Doc/lib/compiler.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ \section{Using Visitors to Walk ASTs}
299299

300300
The visitor pattern is ... The \refmodule{compiler} package uses a
301301
variant on the visitor pattern that takes advantage of Python's
302-
introspection features to elminiate the need for much of the visitor's
302+
introspection features to eliminate the need for much of the visitor's
303303
infrastructure.
304304

305305
The classes being visited do not need to be programmed to accept

Doc/lib/emailheaders.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Of course, as email has been deployed worldwide, it has become
1111
internationalized, such that language specific character sets can now
1212
be used in email messages. The base standard still requires email
13-
messages to be transfered using only 7-bit \ASCII{} characters, so a
13+
messages to be transferred using only 7-bit \ASCII{} characters, so a
1414
slew of RFCs have been written describing how to encode email
1515
containing non-\ASCII{} characters into \rfc{2822}-compliant format.
1616
These RFCs include \rfc{2045}, \rfc{2046}, \rfc{2047}, and \rfc{2231}.

Doc/lib/libbsddb.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ \section{\module{bsddb} ---
1616

1717
Starting with Python 2.3 the \module{bsddb} module requires the
1818
Berkeley DB library version 3.2 or later (it is known to work with 3.2
19-
thru 4.3 at the time of this writing).
19+
through 4.3 at the time of this writing).
2020

2121
\begin{seealso}
2222
\seeurl{http://pybsddb.sourceforge.net/}{Website with documentation

Doc/lib/libcd.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ \section{\module{cd} ---
5050
methods of the player object are described below. The device is the
5151
name of the SCSI device file, e.g. \code{'/dev/scsi/sc0d4l0'}, or
5252
\code{None}. If omitted or \code{None}, the hardware inventory is
53-
consulted to locate a CD-ROM drive. The \var{mode}, if not omited,
53+
consulted to locate a CD-ROM drive. The \var{mode}, if not omitted,
5454
should be the string \code{'r'}.
5555
\end{funcdesc}
5656

0 commit comments

Comments
 (0)