mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
* Doc/libfuncs.tex: don't use $math$ in description of pow(x,y,z);
describe tuple() * Doc/libposixfile.tex: use tableiii instead of tableii, so partparse will work again (I know, chicken!) * Doc/libthread.tex: Added get_ident(); updated text on module availability * Doc/myformat.perl: Added sub do_cmd_Cpp
This commit is contained in:
parent
0b7d02a36f
commit
b8b264b165
7 changed files with 69 additions and 28 deletions
|
@ -239,8 +239,10 @@ there's no reliable way to determine whether this is the case.}
|
|||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{pow}{x\, y\optional{\, z}}
|
||||
Return \var{x} to the power \var{y}; if \var{z} is present, $x^y \bmod z$
|
||||
is returned. The arguments must have
|
||||
Return \var{x} to the power \var{y}; if \var{z} is present, return
|
||||
\var{x} to the power \var{y}, modulo \var{z} (computed more
|
||||
efficiently that \code{pow(\var{x}, \var{y}) \% \var{z}}).
|
||||
The arguments must have
|
||||
numeric types. With mixed operand types, the rules for binary
|
||||
arithmetic operators apply. The effective operand type is also the
|
||||
type of the result; if the result is not expressible in this type, the
|
||||
|
@ -354,6 +356,14 @@ always attempt to return a string that is acceptable to \code{eval()};
|
|||
its goal is to return a printable string.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{tuple}{object}
|
||||
Return a tuple whose items are the same and in the same order as
|
||||
\var{object}'s items. If \var{object} is alread a tuple, it
|
||||
is returned unchanged. For instance, \code{tuple('abc')} returns
|
||||
returns \code{('a', 'b', 'c')} and \code{tuple([1, 2, 3])} returns
|
||||
\code{(1, 2, 3)}.
|
||||
\end{funcdesc}
|
||||
|
||||
\begin{funcdesc}{type}{object}
|
||||
% XXXJH xref to buil-in objects here?
|
||||
Return the type of an \var{object}. The return value is a type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue