File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1112,7 +1112,7 @@ \subsubsection{Built-in Codecs \label{builtinCodecs}}
11121112
11131113% --- Unicode-Escape Codecs ----------------------------------------------
11141114
1115- These are the `` Unicode Esacpe '' codec APIs:
1115+ These are the `` Unicode Escape '' codec APIs:
11161116
11171117\begin {cfuncdesc }{PyObject*}{PyUnicode_DecodeUnicodeEscape}{const char *s,
11181118 int size,
@@ -1138,13 +1138,13 @@ \subsubsection{Built-in Codecs \label{builtinCodecs}}
11381138
11391139% --- Raw-Unicode-Escape Codecs ------------------------------------------
11401140
1141- These are the `` Raw Unicode Esacpe '' codec APIs:
1141+ These are the `` Raw Unicode Escape '' codec APIs:
11421142
11431143\begin {cfuncdesc }{PyObject*}{PyUnicode_DecodeRawUnicodeEscape}{const char *s,
11441144 int size,
11451145 const char *errors}
11461146 Creates a Unicode object by decoding \var {size} bytes of the
1147- Raw-Unicode-Esacpe encoded string \var {s}. Returns \NULL {} if an
1147+ Raw-Unicode-Escape encoded string \var {s}. Returns \NULL {} if an
11481148 exception was raised by the codec.
11491149\end {cfuncdesc }
11501150
@@ -1325,7 +1325,7 @@ \subsubsection{Methods and Slot Functions \label{unicodeMethodsAndSlots}}
13251325
13261326The following APIs are capable of handling Unicode objects and strings
13271327on input (we refer to them as strings in the descriptions) and return
1328- Unicode objects or integers as apporpriate .
1328+ Unicode objects or integers as appropriate .
13291329
13301330They all return \NULL {} or \code {-1} if an exception occurs.
13311331
Original file line number Diff line number Diff line change @@ -752,7 +752,7 @@ \section{Profiling and Tracing \label{profiling}}
752752 function when an exception has been raised. The callback function
753753 is called with this value for \var {what} when after any bytecode is
754754 processed after which the exception becomes set within the frame
755- being executed. The effect of this is that as exception propogation
755+ being executed. The effect of this is that as exception propagation
756756 causes the Python stack to unwind, the callback is called upon
757757 return to each frame as the exception propagates. Only trace
758758 functions receives these events; they are not needed by the
@@ -767,7 +767,7 @@ \section{Profiling and Tracing \label{profiling}}
767767
768768\begin {cvardesc }{int}{PyTrace_RETURN}
769769 The value for the \var {what} parameter to \ctype {Py_tracefunc}
770- functions when a call is returning without propogating an exception.
770+ functions when a call is returning without propagating an exception.
771771\end {cvardesc }
772772
773773\begin {cfuncdesc }{void}{PyEval_SetProfile}{Py_tracefunc func, PyObject *obj}
Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ \section{Type Objects \label{type-structs}}
498498
499499 The destructor function is called by the \cfunction {Py_DECREF()} and
500500 \cfunction {Py_XDECREF()} macros when the new reference count is
501- zero. At this point, the instance is still in existance , but there
501+ zero. At this point, the instance is still in existence , but there
502502 are no references to it. The destructor function should free all
503503 references which the instance owns, free all memory buffers owned by
504504 the instance (using the freeing function corresponding to the
@@ -1515,7 +1515,7 @@ \section{Supporting the Iterator Protocol
15151515 \label {supporting-iteration } }
15161516
15171517
1518- \section {Supporting Cyclic Garbarge Collection
1518+ \section {Supporting Cyclic Garbage Collection
15191519 \label {supporting-cycle-detection } }
15201520
15211521Python's support for detecting and collecting garbage which involves
Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ \subsection{Debugging the setup script}
805805of the failure. For this purpose, the DISTUTILS_DEBUG environment
806806variable can be set to anything except an empty string, and distutils
807807will now print detailed information what it is doing, and prints the
808- full traceback in case an exception occurrs .
808+ full traceback in case an exception occurs .
809809
810810\section {Writing the Setup Configuration File }
811811\label {setup-config }
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ \subsection{Platform variations}
158158On Windows, you'd probably download \file {foo-1.0.zip}. If you
159159downloaded the archive file to \file {C:\textbackslash {}Temp}, then it
160160would unpack into \file {C:\textbackslash {}Temp\textbackslash {}foo-1.0};
161- you can use either a archive manipulator with a grapical user interface
161+ you can use either a archive manipulator with a graphical user interface
162162(such as WinZip) or a command-line tool (such as \program {unzip} or
163163\program {pkunzip}) to unpack the archive. Then, open a command prompt
164164window (`` DOS box'' ), and run:
Original file line number Diff line number Diff line change @@ -1034,7 +1034,7 @@ \subsection{Basic customization\label{customization}}
10341034\method {__init__()} method, if any, must explicitly call it to ensure proper
10351035initialization of the base class part of the instance; for example:
10361036\samp {BaseClass.__init__(\var {self}, [\var {args}...])}. As a special
1037- contraint on constructors, no value may be returned; doing so will
1037+ constraint on constructors, no value may be returned; doing so will
10381038cause a \exception {TypeError} to be raised at runtime.
10391039\end {methoddesc }
10401040
Original file line number Diff line number Diff line change @@ -1004,7 +1004,7 @@ \section{Boolean operations\label{Booleans}}
10041004\section {Lambdas\label {lambdas } }
10051005\indexii {lambda}{expression}
10061006\indexii {lambda}{form}
1007- \indexii {anonmymous }{function}
1007+ \indexii {anonymous }{function}
10081008
10091009Lambda forms (lambda expressions) have the same syntactic position as
10101010expressions. They are a shorthand to create anonymous functions; the
Original file line number Diff line number Diff line change @@ -2494,7 +2494,7 @@ \section{Standard Modules \label{standardModules}}
24942494the core of the language but are nevertheless built in, either for
24952495efficiency or to provide access to operating system primitives such as
24962496system calls. The set of such modules is a configuration option which
2497- also dependson the underlying platform For example,
2497+ also depends on the underlying platform For example,
24982498the \module {amoeba} module is only provided on systems that somehow
24992499support Amoeba primitives. One particular module deserves some
25002500attention: \ulink {\module {sys}}{../lib/module-sys.html}%
@@ -2647,7 +2647,7 @@ \section{Packages \label{packages}}
26472647 ...
26482648\end {verbatim }
26492649
2650- When importing the package, Python searchs through the directories
2650+ When importing the package, Python searches through the directories
26512651on \code {sys.path} looking for the package subdirectory.
26522652
26532653The \file {__init__.py} files are required to make Python treat the
You can’t perform that action at this time.
0 commit comments