GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-46541: Remove usage of _Py_IDENTIFIER from array module by corona10 · Pull Request #31376 · python/cpython

Conversation

@corona10

@corona10 corona10 commented Feb 16, 2022 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

https://bugs.python.org/issue46541

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@corona10
bpo-46541: Remove usage of _Py_IDENTIFIER from array module
8573510
@corona10 corona10 added the skip news label Feb 16, 2022
@corona10
corona10 requested a review from ericsnowcurrently February 16, 2022 16:15
@bedevere-bot bedevere-bot added the awaiting core review label Feb 16, 2022
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Feb 16, 2022
@corona10

corona10 commented Feb 16, 2022

Copy link
Copy Markdown
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
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10

corona10 commented Feb 16, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ericsnowcurrently

ericsnowcurrently commented Feb 16, 2022

Copy link
Copy Markdown
Member

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

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ericsnowcurrently

ericsnowcurrently commented Feb 16, 2022

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@corona10
corona10 requested a review from erlend-aasland February 17, 2022 02:11
@corona10
bpo-46541: Address code review
c9a28a2
@corona10
corona10 force-pushed the bpo-46541-array branch from 1c07902 to c9a28a2 Compare February 17, 2022 02:12
@corona10

corona10 commented Feb 17, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

@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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ericsnowcurrently

ericsnowcurrently commented Feb 17, 2022

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ericsnowcurrently
ericsnowcurrently approved these changes Feb 17, 2022
View reviewed changes

@ericsnowcurrently ericsnowcurrently left a comment

Copy link
Copy Markdown
Member

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting core review labels Feb 17, 2022
@corona10
corona10 merged commit 8cb5f70 into python:main Feb 17, 2022
@bedevere-bot bedevere-bot removed the awaiting merge label Feb 17, 2022
@corona10
corona10 deleted the bpo-46541-array branch February 17, 2022 04:02
@erlend-aasland

erlend-aasland commented Feb 17, 2022

Copy link
Copy Markdown
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:

  • https://bugs.python.org/issue43974
  • https://bugs.python.org/issue41111

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.

ericsnowcurrently reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@erlend-aasland

erlend-aasland commented Feb 17, 2022

Copy link
Copy Markdown
Contributor

BTW, this PR looks good to me :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ericsnowcurrently

ericsnowcurrently commented Feb 17, 2022

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ericsnowcurrently ericsnowcurrently mentioned this pull request Jul 9, 2022
Replace _Py_IDENTIFIER() with statically initialized objects. #90699
Closed
@erlend-aasland erlend-aasland mentioned this pull request Feb 21, 2023
Use _Py_EnterRecursiveCall private API in _bisectmodule.c #101903
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ericsnowcurrently ericsnowcurrently ericsnowcurrently approved these changes
@erlend-aasland erlend-aasland Awaiting requested review from erlend-aasland

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@corona10 @ericsnowcurrently @erlend-aasland @the-knights-who-say-ni @bedevere-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.