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. |
mdickinson
left a comment
There was a problem hiding this comment.
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.
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.
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