@@ -118,7 +118,7 @@ \section{Built-in Functions \label{built-in-funcs}}
118118 operations.
119119\end {funcdesc }
120120
121- \begin {funcdesc }{compile}{string, filename, kind\optional {,
121+ \begin {funcdesc }{compile}{string, filename, kind\optional {,
122122 flags\optional {, dont_inherit}}}
123123 Compile the \var {string} into a code object. Code objects can be
124124 executed by an \keyword {exec} statement or evaluated by a call to
@@ -408,7 +408,7 @@ \section{Built-in Functions \label{built-in-funcs}}
408408\begin {funcdesc }{locals}{}
409409Return a dictionary representing the current local symbol table.
410410\strong {Warning:} The contents of this dictionary should not be
411- modified; changes may not affect the values of local variables used by
411+ modified; changes may not affect the values of local variables used by
412412the interpreter.
413413\end {funcdesc }
414414
@@ -478,7 +478,7 @@ \section{Built-in Functions \label{built-in-funcs}}
478478 ignored). If the file cannot be opened, \exception {IOError} is
479479 raised.
480480
481- If \var {mode} is omitted, it defaults to \code {'r'}. When opening a
481+ If \var {mode} is omitted, it defaults to \code {'r'}. When opening a
482482 binary file, you should append \code {'b'} to the \var {mode} value
483483 for improved portability. (It's useful even on systems which don't
484484 treat binary and text files differently, where it serves as
@@ -519,8 +519,14 @@ \section{Built-in Functions \label{built-in-funcs}}
519519 case, all arguments are converted to float and a float result is
520520 delivered. For example, \code {10**2} returns \code {100}, but
521521 \code {10**-2} returns \code {0.01}. (This last feature was added in
522- Python 2.2. In Python 2.1 and before, a negative second argument
523- would raise an exception.)
522+ Python 2.2. In Python 2.1 and before, if both arguments were of integer
523+ types and the second argument was negative, an exception was raised.)
524+ If the second argument is negative, the third argument must be omitted.
525+ If \var {z} is present, \var {x} and \var {y} must be of integer types,
526+ and \var {y} must be non-negative. (This restriction was added in
527+ Python 2.2. In Python 2.1 and before, floating 3-argument \code {pow()}
528+ returned platform-dependent results depending on floating-point
529+ rounding accidents.)
524530\end {funcdesc }
525531
526532\begin {funcdesc }{range}{\optional {start,} stop\optional {, step}}
@@ -731,7 +737,7 @@ \section{Built-in Functions \label{built-in-funcs}}
731737The returned dictionary should not be modified: the effects on the
732738corresponding symbol table are undefined.\footnote {
733739 In the current implementation, local variable bindings cannot
734- normally be affected this way, but variables retrieved from
740+ normally be affected this way, but variables retrieved from
735741 other scopes (such as modules) can be. This may change.}
736742\end {funcdesc }
737743
0 commit comments