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 — gh-151126: Fix `PyErr_NoMemory` errors in `_ctypes.c` by lpyu001 · Pull Request #152720 · python/cpython

Conversation

@lpyu001

@lpyu001 lpyu001 commented Jul 1, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor
  • Issue: Many places have missing PyErr_NoMemory() call after failing memory allocation #151126

Sorry, something went wrong.

Uh oh!

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

All reactions
@lpyu001
Fix PyErr_NoMemory errors in _ctypes.c
e1bedf7
@bedevere-app bedevere-app Bot added the awaiting review label Jul 1, 2026
@lpyu001 lpyu001 changed the title Fix PyErr_NoMemory errors in _ctypes.c gh-151126: Fix PyErr_NoMemory errors in _ctypes.c Jul 1, 2026
@bedevere-app bedevere-app Bot mentioned this pull request Jul 1, 2026
Many places have missing PyErr_NoMemory() call after failing memory allocation #151126
Open
@lpyu001
add NEWS
ed74ad8
aisk
aisk reviewed Jul 7, 2026
View reviewed changes
Comment thread Misc/NEWS.d/next/Library/2026-07-01-11-29-13.gh-issue-151126.eElGy5.rst Resolved

Uh oh!

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

@lpyu001 @aisk
Update Misc/NEWS.d/next/Library/2026-07-01-11-29-13.gh-issue-151126.e…
d8dde77
…ElGy5.rst

Co-authored-by: An Long <[email protected]>
aisk
aisk approved these changes Jul 7, 2026
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting core review and removed awaiting review labels Jul 7, 2026
@lpyu001
Merge branch 'main' into add-PyErr_NoMemory
cb33b64
@kumaraditya303
kumaraditya303 merged commit d807210 into python:main Jul 14, 2026
54 checks passed

Uh oh!

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

@bedevere-app bedevere-app Bot removed the awaiting core review label Jul 14, 2026
@aisk aisk added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Jul 14, 2026
@miss-islington-app

miss-islington-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

Thanks @lpyu001 for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

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

@miss-islington-app

miss-islington-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

Thanks @lpyu001 for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

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

@miss-islington-app

miss-islington-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

Thanks @lpyu001 for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app

bedevere-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

GH-153708 is a backport of this pull request to the 3.13 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Jul 14, 2026
@bedevere-app

bedevere-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

GH-153709 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 14, 2026
@bedevere-app

bedevere-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

GH-153710 is a backport of this pull request to the 3.15 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Jul 14, 2026
@aisk

aisk commented Jul 14, 2026

Copy link
Copy Markdown
Member

Since most PRs in the original issue #151126 have been backported, so I added the backport labels.

All reactions

Sorry, something went wrong.

Uh oh!

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

Yhg1s pushed a commit that referenced this pull request Aug 4, 2026
@miss-islington @lpyu001
[3.13] gh-151126: Fix PyErr_NoMemory errors in _ctypes.c (GH-152720…
3c431d5
…) (#153708)

gh-151126: Fix `PyErr_NoMemory`  errors in `_ctypes.c`  (GH-152720)
(cherry picked from commit d807210)

Co-authored-by: stevens <[email protected]>
encukou pushed a commit that referenced this pull request Oct 9, 2026
@miss-islington @lpyu001
[3.15] gh-151126: Fix PyErr_NoMemory errors in _ctypes.c (GH-152720…
bb5ff8c
…) (GH-153710)

gh-151126: Fix `PyErr_NoMemory`  errors in `_ctypes.c`  (GH-152720)
(cherry picked from commit d807210)

Co-authored-by: stevens <[email protected]>
sobolevn added a commit that referenced this pull request Nov 11, 2026
@miss-islington @lpyu001 @sobolevn
[3.14] gh-151126: Fix PyErr_NoMemory errors in _ctypes.c (GH-152720…
0df6b24
…) (#153709)

gh-151126: Fix `PyErr_NoMemory`  errors in `_ctypes.c`  (GH-152720)
(cherry picked from commit d807210)

Co-authored-by: stevens <[email protected]>
Co-authored-by: sobolevn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aisk aisk aisk approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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

@lpyu001 @aisk @kumaraditya303
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.