mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
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.
This commit is contained in:
parent
f8316638af
commit
f9b526dbfd
5 changed files with 12 additions and 12 deletions
|
@ -741,7 +741,7 @@ The built-in function \function{len()} returns the length of a string:
|
|||
Starting with Python 2.0 a new data type for storing text data is
|
||||
available to the programmer: the Unicode object. It can be used to
|
||||
store and manipulate Unicode data (see \url{http://www.unicode.org})
|
||||
and intergrates well with the existing string objects providing
|
||||
and integrates well with the existing string objects providing
|
||||
auto-conversions where necessary.
|
||||
|
||||
Unicode has the advantage of providing one ordinal for every character
|
||||
|
@ -798,7 +798,7 @@ The raw mode is most useful when you have to enter lots of backslashes
|
|||
e.g. in regular expressions.
|
||||
|
||||
Apart from these standard encodings, Python provides a whole set of
|
||||
other ways of creating Unicod strings on the basis of a known
|
||||
other ways of creating Unicode strings on the basis of a known
|
||||
encoding.
|
||||
|
||||
The builtin \function{unicode()}\bifuncindex{unicode} provides access
|
||||
|
@ -807,7 +807,7 @@ more well known encodings which these codecs can convert are
|
|||
\emph{Latin-1}, \emph{ASCII}, \emph{UTF-8} and \emph{UTF-16}. The latter two
|
||||
are variable length encodings which permit to store Unicode characters
|
||||
in 8 or 16 bits. Python uses UTF-8 as default encoding. This becomes
|
||||
noticable when printing Unicode strings or writing them to files.
|
||||
noticeable when printing Unicode strings or writing them to files.
|
||||
|
||||
\begin{verbatim}
|
||||
>>> u"äöü"
|
||||
|
@ -3019,7 +3019,7 @@ by the \keyword{try} \ldots\ \keyword{except} statement.
|
|||
|
||||
|
||||
When an exception occurs, it may have an associated value, also known as
|
||||
the exceptions's \emph{argument}.
|
||||
the exception's \emph{argument}.
|
||||
The presence and type of the argument depend on the exception type.
|
||||
For exception types which have an argument, the except clause may
|
||||
specify a variable after the exception name (or list) to receive the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue