]> 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 3cff88a4e34cf527e197e283b034ad89d9d7bebb..fc63b57a85521ce534caf0b78f470667ec69cf14 100644 (file)
@@ -72,7 +72,7 @@ pointers.  This is consistent throughout the API.
    Return the exponentiation of *num* by *exp*, using the C :c:type:`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 :c:data:`errno` to :c:data:`EDOM`.