-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-43422: Revert _decimal C API addition #24792
Conversation
Shouldn't this require a NEWS item? #21519 had one, and the API has been present in all the 3.10 alphas released so far. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. A couple of questions, but nothing show-stopping.
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright (c) 2008-2020 Stefan Krah. All rights reserved. | |||
* Copyright (c) 2008-2012 Stefan Krah. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems odd; is this definitely correct? (Should "2012" have been "2021" here?)
I don't think it's terribly consequential, and I'm happy for the change to stay if that keeps us compatible with upstream.
import _pydecimal as P | ||
|
||
|
||
C = import_fresh_module('decimal', fresh=['_decimal']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these changes related to the purpose of the PR, or just incidental?
For the record, this PR is straight from Stefan's own branch here: master...skrah:revert_decimal_capsule_api |
I'll add a NEWS item soon. |
Since this PR was created from Stefan's fork, I've opened #24960 from my fork in order to add a NEWS item. Closing this one. |
Stefan Krah requested the reversal of these (unreleased) changes, quoting him:
https://bugs.python.org/issue43422