Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-151126: Add PyErr_NoMemory() in strong_cache_node_new#151137

Closed
sobolevn wants to merge 1 commit into
python:mainpython/cpython:mainfrom
sobolevn:issue-151126-2sobolevn/cpython:issue-151126-2Copy head branch name to clipboard
Closed

gh-151126: Add PyErr_NoMemory() in strong_cache_node_new#151137
sobolevn wants to merge 1 commit into
python:mainpython/cpython:mainfrom
sobolevn:issue-151126-2sobolevn/cpython:issue-151126-2Copy head branch name to clipboard

Conversation

@sobolevn

@sobolevn sobolevn commented Jun 9, 2026

Copy link
Copy Markdown
Member

@StanFromIreland StanFromIreland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is incorrect, we deliberately don't set the error here. The strong cache is an optimisation whose failure is harmless, the ZoneInfo instance has already been built successfully and gets returned regardless.

Comment thread Modules/_zoneinfo.c
Comment on lines 2347 to 2350
* This function doesn't set MemoryError if PyMem_Malloc fails,
* as the cache intentionally doesn't propagate exceptions
* and fails silently if error occurs.
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See this comment.

@bedevere-app

bedevere-app Bot commented Jun 9, 2026

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@sobolevn

sobolevn commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

Thanks! I've missed the comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changes needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.