[Python-checkins] cpython (2.7): Issue #13522: Fix _Py_co_pow() documentation

antoine.pitrou python-checkins at python.org
Sun Dec 18 12:29:27 CET 2011


http://hg.python.org/cpython/rev/2863470caebb
changeset:   74030:2863470caebb
branch:      2.7
parent:      74025:059e4d752fbe
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Sun Dec 18 02:56:18 2011 +0100
summary:
  Issue #13522: Fix _Py_co_pow() documentation

Patch written by Arnaud Calmettes.

files:
  Doc/c-api/complex.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/c-api/complex.rst b/Doc/c-api/complex.rst
--- a/Doc/c-api/complex.rst
+++ b/Doc/c-api/complex.rst
@@ -72,7 +72,7 @@
    Return the exponentiation of *num* by *exp*, using the C :ctype:`Py_complex`
    representation.
 
-   If :attr:`exp.imag` is not null, or :attr:`exp.real` is negative,
+   If *num* is null and *exp* is not a positive real number,
    this method returns zero and sets :cdata:`errno` to :cdata:`EDOM`.
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list