Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Mar 8, 2021

Stefan Krah requested the reversal of these (unreleased) changes, quoting him:

The capsule API does not meet my testing standards, since I've focused
on the upstream mpdecimal in the last couple of months.
Additionally, I'd like to refine the API, perhaps together with the
Arrow community.

https://bugs.python.org/issue43422

@erlend-aasland
Copy link
Contributor

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.

Copy link
Member

@mdickinson mdickinson left a 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.
Copy link
Member

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'])
Copy link
Member

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?

@pitrou
Copy link
Member Author

pitrou commented Mar 21, 2021

For the record, this PR is straight from Stefan's own branch here: master...skrah:revert_decimal_capsule_api
I'm reluctant to do any changes that aren't necessary for inclusion.

@pitrou
Copy link
Member Author

pitrou commented Mar 21, 2021

I'll add a NEWS item soon.

@pitrou
Copy link
Member Author

pitrou commented Mar 21, 2021

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.

@pitrou pitrou closed this Mar 21, 2021
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.

6 participants