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

Skip to content

Commit f9b526d

Browse files
committed
More of Rob W. W. Hooft's spelling fixes. The only ones left now are the
distutils patches, which I'll leave to the distutils maintainers. Tip: review the patch like this: grep "^[\!+-] " <patchfile> To get a quick and easy way to review the actual changes. Most of the changes are single-line ones, anyway.
1 parent f831663 commit f9b526d

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/ref/ref1.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ \chapter{Introduction\label{introduction}}
1313
On the other hand, if you are using
1414
Python and wonder what the precise rules about a particular area of
1515
the language are, you should definitely be able to find them here.
16-
If you would like to see a more formal definitition of the language,
16+
If you would like to see a more formal definition of the language,
1717
maybe you could volunteer your time --- or invent a cloning machine
1818
:-).
1919

Doc/ref/ref3.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ \section{The standard type hierarchy\label{types}}
217217
These represent finite ordered sets indexed by natural numbers.
218218
The built-in function \function{len()}\bifuncindex{len} returns the
219219
number of items of a sequence.
220-
When the lenth of a sequence is \var{n}, the
220+
When the length of a sequence is \var{n}, the
221221
index set contains the numbers 0, 1, \ldots, \var{n}-1. Item
222222
\var{i} of sequence \var{a} is selected by \code{\var{a}[\var{i}]}.
223223
\obindex{sequence}
@@ -310,7 +310,7 @@ \section{The standard type hierarchy\label{types}}
310310
Mutable sequences can be changed after they are created. The
311311
subscription and slicing notations can be used as the target of
312312
assignment and \keyword{del} (delete) statements.
313-
\obindex{mutable sequece}
313+
\obindex{mutable sequence}
314314
\obindex{mutable}
315315
\indexii{assignment}{statement}
316316
\index{delete}
@@ -700,7 +700,7 @@ \section{The standard type hierarchy\label{types}}
700700
the bytecode; \member{co_filename} is the filename from which the code
701701
was compiled; \member{co_firstlineno} is the first line number of the
702702
function; \member{co_lnotab} is a string encoding the mapping from
703-
byte code offsets to line numbers (for detais see the source code of
703+
byte code offsets to line numbers (for details see the source code of
704704
the interpreter); \member{co_stacksize} is the required stack size
705705
(including local variables); \member{co_flags} is an integer encoding
706706
a number of flags for the interpreter.
@@ -815,8 +815,8 @@ \section{The standard type hierarchy\label{types}}
815815
k:l]}, or \code{a[..., i:j])}. They are also created by the built-in
816816
\function{slice()}\bifuncindex{slice} function.
817817

818-
Special read-only attributes: \member{start} is the lowerbound;
819-
\member{stop} is the upperbound; \member{step} is the step value; each is
818+
Special read-only attributes: \member{start} is the lower bound;
819+
\member{stop} is the upper bound; \member{step} is the step value; each is
820820
\code{None} if omitted. These attributes can have any type.
821821
\withsubitem{(slice object attribute)}{
822822
\ttindex{start}

Doc/ref/ref6.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ \section{The \keyword{continue} statement \label{continue}}
431431
\keyword{while} loop, but not nested in a function or class definition or
432432
\keyword{try} statement within that loop.\footnote{It may
433433
occur within an \keyword{except} or \keyword{else} clause. The
434-
restriction on occurring in the \keyword{try} clause is implementer's
434+
restriction on occurring in the \keyword{try} clause is implementor's
435435
laziness and will eventually be lifted.}
436436
It continues with the next cycle of the nearest enclosing loop.
437437
\stindex{for}

Doc/ref/ref7.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ \section{The \keyword{try} statement\label{try}}
211211
handler continues in the surrounding code and on the invocation stack.
212212

213213
If the evaluation of an expression in the header of an except clause
214-
raises an exception, the original search for a handler is cancelled
214+
raises an exception, the original search for a handler is canceled
215215
and a search starts for the new exception in the surrounding code and
216216
on the call stack (it is treated as if the entire \keyword{try} statement
217217
raised the exception).

Doc/tut/tut.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ \subsection{Unicode Strings \label{unicodeStrings}}
741741
Starting with Python 2.0 a new data type for storing text data is
742742
available to the programmer: the Unicode object. It can be used to
743743
store and manipulate Unicode data (see \url{http://www.unicode.org})
744-
and intergrates well with the existing string objects providing
744+
and integrates well with the existing string objects providing
745745
auto-conversions where necessary.
746746

747747
Unicode has the advantage of providing one ordinal for every character
@@ -798,7 +798,7 @@ \subsection{Unicode Strings \label{unicodeStrings}}
798798
e.g. in regular expressions.
799799

800800
Apart from these standard encodings, Python provides a whole set of
801-
other ways of creating Unicod strings on the basis of a known
801+
other ways of creating Unicode strings on the basis of a known
802802
encoding.
803803

804804
The builtin \function{unicode()}\bifuncindex{unicode} provides access
@@ -807,7 +807,7 @@ \subsection{Unicode Strings \label{unicodeStrings}}
807807
\emph{Latin-1}, \emph{ASCII}, \emph{UTF-8} and \emph{UTF-16}. The latter two
808808
are variable length encodings which permit to store Unicode characters
809809
in 8 or 16 bits. Python uses UTF-8 as default encoding. This becomes
810-
noticable when printing Unicode strings or writing them to files.
810+
noticeable when printing Unicode strings or writing them to files.
811811

812812
\begin{verbatim}
813813
>>> u"äöü"
@@ -3019,7 +3019,7 @@ \section{Handling Exceptions \label{handling}}
30193019
30203020
30213021
When an exception occurs, it may have an associated value, also known as
3022-
the exceptions's \emph{argument}.
3022+
the exception's \emph{argument}.
30233023
The presence and type of the argument depend on the exception type.
30243024
For exception types which have an argument, the except clause may
30253025
specify a variable after the exception name (or list) to receive the

0 commit comments

Comments
 (0)