]> granicus.if.org Git - python/commitdiff
Issue #13522: Fix _Py_co_pow() documentation
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 18 Dec 2011 01:56:18 +0000 (02:56 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 18 Dec 2011 01:56:18 +0000 (02:56 +0100)
Patch written by Arnaud Calmettes.

Doc/c-api/complex.rst

index f5304bdb227e77ba5aefb5501b5dc5faa2b0116e..90e9c0309137ed68b0b741a2b5299ba3c6e9d7e1 100644 (file)
@@ -72,7 +72,7 @@ pointers.  This is consistent throughout the API.
    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`.