[issue45218] cmath.log has an invalid signature

STINNER Victor report at bugs.python.org
Thu Sep 16 08:50:51 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

The current Argument Clinic syntax for math.log() is:

--------------
/*[clinic input]
math.log

    x:    object
    [
    base: object(c_default="NULL") = math.e
    ]
    /

Return the logarithm of x to the given base.
(...)
--------------

math.log.__text_signature__ is None. __text_signature__ is used by inspect.signature().

I guess that it's a bug in Argument Clinic.

----------
nosy: +vstinner

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45218>
_______________________________________


More information about the Python-bugs-list mailing list