Skip to content

Conversation

skirpichev
Copy link
Contributor

@skirpichev skirpichev commented Jan 16, 2023

@hauntsaninja
Copy link
Contributor

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
Copy link
Contributor Author

@hauntsaninja, thanks. I left few notes on the new PR.

@skirpichev
Copy link
Contributor Author

Closed per #101123

@skirpichev skirpichev closed this Jan 19, 2023
@skirpichev skirpichev deleted the fix-89381 branch January 19, 2023 07:48
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor Author

reopened as #101404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants