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 — Remove unused internal _PyImport_GetModuleId() function by vstinner · Pull Request #107235 · python/cpython

Conversation

@vstinner

@vstinner vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member

No description provided.

Sorry, something went wrong.

Uh oh!

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

All reactions
@vstinner vstinner added skip issue skip news labels Jul 25, 2023
@vstinner
vstinner requested review from brettcannon, ericsnowcurrently, ncoghlan and warsaw as code owners July 25, 2023 12:12
@bedevere-bot bedevere-bot added the awaiting core review label Jul 25, 2023
@vstinner

vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

@ericsnowcurrently: Here is a PR to remove _PyImport_GetModuleId().

All reactions

Sorry, something went wrong.

Uh oh!

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

@ericsnowcurrently

ericsnowcurrently commented Jul 25, 2023

Copy link
Copy Markdown
Member

FTR, here's Victor's PyPI search: #107213 (comment)

All reactions

Sorry, something went wrong.

Uh oh!

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

ericsnowcurrently
ericsnowcurrently approved these changes Jul 25, 2023
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.

Assuming no external modules (or embedders) are using this, 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 Jul 25, 2023
@vstinner vstinner closed this Jul 25, 2023
@vstinner vstinner reopened this Jul 25, 2023
@vstinner
Remove unused internal _PyImport_GetModuleId() function
9f3f713
@vstinner
vstinner force-pushed the remove_import_getmoduleid branch from 0caa13c to 9f3f713 Compare July 25, 2023 16:02
@vstinner

vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

Hum, the CLA Signing job was blocked. So I closed/reopened my PR and also rebased it on the main branch. Let's see if this time, the job starts.

All reactions

Sorry, something went wrong.

Uh oh!

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

@vstinner

vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

docs/readthedocs.org:cpython-previews — Read the Docs build failed!

Strange. Python .readthedocs.yaml uses exit 183 if the Python Documentation was not changed and so it's not needed to build the documentation, and this exit code is documented by ReadTheDocs as "skip the build"

All reactions

Sorry, something went wrong.

Uh oh!

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

@vstinner vstinner mentioned this pull request Jul 25, 2023
Build marked as "Failed" when "exit 183" ("skip the build") is used readthedocs/readthedocs.org#10567
Closed
@vstinner

vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

Strange. Python .readthedocs.yaml uses exit 183 if the Python Documentation was not changed and so it's not needed to build the documentation, and this exit code is documented by ReadTheDocs as "skip the build"

I reported the issue to ReadTheDocs bug tracker: readthedocs/readthedocs.org#10567

All reactions

Sorry, something went wrong.

Uh oh!

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

@vstinner vstinner closed this Jul 25, 2023
@vstinner vstinner reopened this Jul 25, 2023
@vstinner

vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

Assuming no external modules (or embedders) are using this, LGTM.

I checked again: I found no user in PyPI top 5,000 projects (2023-07-04):

$ ./search_pypi_top.py PYPI-2023-07-04/ '_PyImport_GetModuleId' -q
PYPI-2023-07-04/fastobo-0.12.2.tar.gz: fastobo-0.12.2/crates/pyo3-ffi/src/cpython/import.rs: // skipped _PyImport_GetModuleId
PYPI-2023-07-04/orjson-3.9.1.tar.gz: orjson-3.9.1/include/cargo/pyo3-ffi-0.19.0/src/cpython/import.rs: // skipped _PyImport_GetModuleId

Time: 0:00:39.023925
Found 2 matching lines in 2 projects

The 2 results are only comments to say that PyO3-ffi has no binding for _PyImport_GetModuleId().

All reactions

Sorry, something went wrong.

Uh oh!

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

@vstinner

vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

I closed/reopened again the PR to trigger a new ReadTheDocs job. Right now, the job is failing with:

Concurrency limit reached (2), retrying in 5 minutes.

All reactions

Sorry, something went wrong.

Uh oh!

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

@vstinner
vstinner enabled auto-merge (squash) July 25, 2023 17:00
@vstinner
vstinner merged commit 188000a into python:main Jul 25, 2023
@bedevere-bot bedevere-bot removed the awaiting merge label Jul 25, 2023
@vstinner
vstinner deleted the remove_import_getmoduleid branch July 25, 2023 17:02
@vstinner

vstinner commented Jul 25, 2023

Copy link
Copy Markdown
Member Author

Merged, thanks for the review @ericsnowcurrently.

All reactions

Sorry, something went wrong.

Uh oh!

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

jtcave pushed a commit to jtcave/cpython that referenced this pull request Jul 27, 2023
@vstinner @jtcave
Remove unused internal _PyImport_GetModuleId() function (python#107235)
31930af
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
@brettcannon brettcannon Awaiting requested review from brettcannon brettcannon is a code owner
@ncoghlan ncoghlan Awaiting requested review from ncoghlan ncoghlan is a code owner
@warsaw warsaw Awaiting requested review from warsaw warsaw is a code owner

Uh oh!

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

Assignees

No one assigned

Labels

skip issue 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.

3 participants

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