FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-151126: Add `PyErr_NoMemory()` in `strong_cache_node_new` by sobolevn · Pull Request #151137 · python/cpython · GitHub

/ cpython Public

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

Closed
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-151126-2
Closed

gh-151126: Add PyErr_NoMemory() in strong_cache_node_new#151137
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-151126-2

Conversation

sobolevn commented Jun 9, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

StanFromIreland left a comment
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

See this comment.

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 commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

Thanks! I've missed the comment.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL