[issue45218] cmath.log has an invalid signature

Mark Dickinson report at bugs.python.org
Thu Sep 16 08:12:30 EDT 2021


Mark Dickinson <dickinsm at gmail.com> added the comment:

See also #36306 and #29299. There may be nothing to be done here, but it would be nice if math.log and cmath.log at least behaved in the same way. A default of `None` doesn't seem like a terrible option.

(BTW, just to forestall the suggestion, a default of `math.e` or `cmath.e` is definitely *not* the right thing to use as a default: `math.e` is not exactly Euler's value for e, and `log` base `math.e` is likely to be less accurate than plain natural log.)

----------

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


More information about the Python-bugs-list mailing list