Commit 9181737a authored by Johannes Gijsbers's avatar Johannes Gijsbers

Patch #1026384: fix two common typo's:

- accomodate -> accommodate
- occured -> occurred

Thanks George Yoshida!
parent b4759ef9
...@@ -113,7 +113,7 @@ When embedding Python, the interface code does: ...@@ -113,7 +113,7 @@ When embedding Python, the interface code does:
\end{enumerate} \end{enumerate}
As you can see, the data conversion steps are simply swapped to As you can see, the data conversion steps are simply swapped to
accomodate the different direction of the cross-language transfer. accommodate the different direction of the cross-language transfer.
The only difference is the routine that you call between both The only difference is the routine that you call between both
data conversions. When extending, you call a C routine, when data conversions. When extending, you call a C routine, when
embedding, you call a Python routine. embedding, you call a Python routine.
......
...@@ -105,7 +105,7 @@ data from a file written on a machine with a different byte order. ...@@ -105,7 +105,7 @@ data from a file written on a machine with a different byte order.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[array]{count}{x} \begin{methoddesc}[array]{count}{x}
Return the number of occurences of \var{x} in the array. Return the number of occurrences of \var{x} in the array.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[array]{extend}{iterable} \begin{methoddesc}[array]{extend}{iterable}
...@@ -147,7 +147,7 @@ append Unicode data to an array of some other type. ...@@ -147,7 +147,7 @@ append Unicode data to an array of some other type.
\begin{methoddesc}[array]{index}{x} \begin{methoddesc}[array]{index}{x}
Return the smallest \var{i} such that \var{i} is the index of Return the smallest \var{i} such that \var{i} is the index of
the first occurence of \var{x} in the array. the first occurrence of \var{x} in the array.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[array]{insert}{i, x} \begin{methoddesc}[array]{insert}{i, x}
...@@ -174,7 +174,7 @@ do. ...@@ -174,7 +174,7 @@ do.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[array]{remove}{x} \begin{methoddesc}[array]{remove}{x}
Remove the first occurence of \var{x} from the array. Remove the first occurrence of \var{x} from the array.
\end{methoddesc} \end{methoddesc}
\begin{methoddesc}[array]{reverse}{} \begin{methoddesc}[array]{reverse}{}
......
...@@ -122,7 +122,7 @@ It is always available. ...@@ -122,7 +122,7 @@ It is always available.
\begin{funcdesc}{exc_clear}{} \begin{funcdesc}{exc_clear}{}
This function clears all information relating to the current or last This function clears all information relating to the current or last
exception that occured in the current thread. After calling this exception that occurred in the current thread. After calling this
function, \function{exc_info()} will return three \code{None} values until function, \function{exc_info()} will return three \code{None} values until
another exception is raised in the current thread or the execution stack another exception is raised in the current thread or the execution stack
returns to a frame where another exception is being handled. returns to a frame where another exception is being handled.
......
...@@ -170,7 +170,7 @@ tar archive several times. Each archive member is represented by a ...@@ -170,7 +170,7 @@ tar archive several times. Each archive member is represented by a
not be found in the archive, \exception{KeyError} is raised. not be found in the archive, \exception{KeyError} is raised.
\begin{notice} \begin{notice}
If a member occurs more than once in the archive, its last If a member occurs more than once in the archive, its last
occurence is assumed to be the most up-to-date version. occurrence is assumed to be the most up-to-date version.
\end{notice} \end{notice}
\end{methoddesc} \end{methoddesc}
......
...@@ -535,7 +535,7 @@ the "slave widgets" inside. The packer is used to control where slave ...@@ -535,7 +535,7 @@ the "slave widgets" inside. The packer is used to control where slave
widgets appear inside the master into which they are packed. You can widgets appear inside the master into which they are packed. You can
pack widgets into frames, and frames into other frames, in order to pack widgets into frames, and frames into other frames, in order to
achieve the kind of layout you desire. Additionally, the arrangement achieve the kind of layout you desire. Additionally, the arrangement
is dynamically adjusted to accomodate incremental changes to the is dynamically adjusted to accommodate incremental changes to the
configuration, once it is packed. configuration, once it is packed.
Note that widgets do not appear until they have had their geometry Note that widgets do not appear until they have had their geometry
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
\noindent \noindent
Big Python is a special version of Python for users who require larger Big Python is a special version of Python for users who require larger
keys on their keyboards. It accomodates their special needs by ... keys on their keyboards. It accommodates their special needs by ...
\end{abstract} \end{abstract}
......
...@@ -1098,7 +1098,7 @@ r ['r', 'r'] ...@@ -1098,7 +1098,7 @@ r ['r', 'r']
>>> # List unique letters >>> # List unique letters
>>> [k for k, g in groupby(letters)] >>> [k for k, g in groupby(letters)]
['a', 'b', 'c', 'd', 'r'] ['a', 'b', 'c', 'd', 'r']
>>> # Count letter occurences >>> # Count letter occurrences
>>> [(k, len(list(g))) for k, g in groupby(letters)] >>> [(k, len(list(g))) for k, g in groupby(letters)]
[('a', 5), ('b', 2), ('c', 1), ('d', 1), ('r', 2)] [('a', 5), ('b', 2), ('c', 1), ('d', 1), ('r', 2)]
\end{verbatim} \end{verbatim}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment