mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Minor markup nit.
This commit is contained in:
parent
0452007dcc
commit
82ac24ffb0
2 changed files with 3 additions and 3 deletions
|
|
@ -694,7 +694,7 @@ second is the address of a C variable (of arbitrary type), converted
|
|||
to \ctype{void *}. The \var{converter} function in turn is called as
|
||||
follows:
|
||||
|
||||
\code{\var{status} = \var{converter}(\var{object}, \var{address});}
|
||||
\var{status}\code{ = }\var{converter}\code{(}\var{object}, \var{address}\code{);}
|
||||
|
||||
where \var{object} is the Python object to be converted and
|
||||
\var{address} is the \ctype{void *} argument that was passed to
|
||||
|
|
|
|||
|
|
@ -190,8 +190,8 @@ integer is smaller than long integer is smaller than floating point is
|
|||
smaller than complex.
|
||||
Comparisons between numbers of mixed type use the same rule.\footnote{
|
||||
As a consequence, the list \code{[1, 2]} is considered equal
|
||||
to \code{[1.0, 2.0]}, and similar for tuples.}
|
||||
The functions \function{int()}, \function{long()}, \function{float()},
|
||||
to \code{[1.0, 2.0]}, and similar for tuples.
|
||||
} The functions \function{int()}, \function{long()}, \function{float()},
|
||||
and \function{complex()} can be used
|
||||
to coerce numbers to a specific type.
|
||||
\index{arithmetic}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue