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-46541: Remove usage of _Py_IDENTIFIER from array module #31376

Merged
merged 2 commits into from
Feb 17, 2022

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Feb 16, 2022

@corona10
Copy link
Member Author


Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 4.95 Run tests sequentially
0:00:00 load avg: 4.95 [1/1] test_array
beginning 6 repetitions
123456
......

== Tests result: SUCCESS ==

1 test OK.

Total duration: 3.3 sec
Tests result: SUCCESS

@corona10
Copy link
Member Author

corona10 commented Feb 16, 2022

@ericsnowcurrently Should we create the separate bpo issue if module changes are too noisy?

@ericsnowcurrently
Copy link
Member

Should we create the separate bpo issue if module changes are too noisy?

https://bugs.python.org/issue46541#msg413355

@ericsnowcurrently
Copy link
Member

This is an extension module so let's avoid using _Py_ID(). I see the module defines Py_BUILD_CORE_MODULE, but ideally we wouldn't. So let's not expand the reliance on internal API.

@corona10
Copy link
Member Author

corona10 commented Feb 17, 2022

@ericsnowcurrently @erlend-aasland
PTAL

I try to remove the usage of Py_BUILD_CORE_BUILTIN, but things should be discussed before removing them.
So let's handle them as separate issues.

@ericsnowcurrently
Copy link
Member

I try to remove the usage of Py_BUILD_CORE_BUILTIN, but things needed to be discussed before removing them. So let's handle them as separate issues.

Yeah, something like that should be handled separately, after any relevant discussion. Note that not everyone may agree with me that stdlib extensions should not use internal API. It may be worth asking on python-dev.

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

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

LGTM

@corona10 corona10 merged commit 8cb5f70 into python:main Feb 17, 2022
@corona10 corona10 deleted the bpo-46541-array branch February 17, 2022 04:02
@erlend-aasland
Copy link
Contributor

This is an extension module so let's avoid using _Py_ID(). I see the module defines Py_BUILD_CORE_MODULE, but ideally we wouldn't. So let's not expand the reliance on internal API.

FYI, relevant bpo's:

As far as I can remember, there has not been any discussion on python-dev or Discourse (yet). I'm pretty sure Victor is interested in starting such a discussion. He's off CPython this week, but we can hear with him sometime next week.

@erlend-aasland
Copy link
Contributor

BTW, this PR looks good to me :)

@ericsnowcurrently
Copy link
Member

FYI, relevant bpo's:

Thanks for the links!

As far as I can remember, there has not been any discussion on python-dev or Discourse (yet). I'm pretty sure Victor is interested in starting such a discussion. He's off CPython this week, but we can hear with him sometime next week.

Sounds good.

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.

5 participants