Uh oh!
There was an error while loading. Please reload this page.
gh-89381: Fix invalid signatures of math/cmath.log - #101070
Conversation
hauntsaninja
commented
Jan 18, 2023
Thanks for the PR! I was curious about why the existing code in mathmodule.c didn't work. It turns out that it is I think easy to fix, which led me to make an alternate PR here: #101115. I think that PR is a slightly smaller change / closer to what whoever did the original argument clinic for mathmodule.c intended. But maybe c_default is sketchy or support for None is desirable, in which case this PR works too! |
skirpichev
commented
Jan 18, 2023
@hauntsaninja, thanks. I left few notes on the new PR. |
skirpichev
commented
Jan 19, 2023
Closed per #101123 |
| Returns the logarithm of *x* to the given *base*. If the *base* is not | ||
| specified, returns the natural logarithm of *x*. There is one branch cut, from 0 | ||
| along the negative real axis to -∞, continuous from above. | ||
| specified or is None, returns the natural logarithm of *x*. There is one |
There was a problem hiding this comment.
In the interests of readability, I'd suggest reverting the change on this line - I think it's clear from context that "not specified" includes the case of deliberately specifying None.
skirpichev
commented
Jan 29, 2023
reopened as #101404 |
Uh oh!
There was an error while loading. Please reload this page.