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

gh-158643: Doc: document that Py_EnterRecursiveCall uses C stack, not a counter by BHUVANSH855 · Pull Request #158644 · python/cpython · GitHub

Repository navigation

gh-158643: Doc: document that Py_EnterRecursiveCall uses C stack, not a counter - #158644

Merged
ZeroIntensity merged 2 commits into
python:mainfrom
BHUVANSH855:doc-enter-recursive-call
Oct 3, 2026
Merged

ZeroIntensity merged 2 commits into
python:mainfrom
BHUVANSH855:doc-enter-recursive-call

Conversation

Copy link
Copy Markdown
Contributor

Fixes gh-158643.

As of 3.14, Py_EnterRecursiveCall/Py_LeaveRecursiveCall compare the
machine stack pointer against c_stack_soft_limit rather than decrementing
a call counter. The docs didn't say this, so a reader could reasonably assume
sys.setrecursionlimit() affects the C-level guard.

Adds a clarifying sentence and a versionchanged:: 3.14 note.

No NEWS entry needed (docs-only change). Requested by @ZeroIntensity in
gh-156205.

read-the-docs-community Bot commented Oct 3, 2026 •
edited
Loading

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34914951 | 📁 Comparing 60dc145 against main (1a85213)

  🔍 Preview build  

1 file changed
± c-api/exceptions.html

aisk added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Oct 3, 2026
Comment thread Doc/c-api/exceptions.rst Outdated
Co-authored-by: An Long <aisk@users.noreply.github.com>
BHUVANSH855 requested a review from aisk October 3, 2026 11:01
ZeroIntensity merged commit d6d1ebc into python:main Oct 3, 2026
39 checks passed

Copy link
Copy Markdown

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

bedevere-app Bot commented Oct 3, 2026

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Oct 3, 2026

bedevere-app Bot commented Oct 3, 2026

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 3, 2026
ZeroIntensity pushed a commit that referenced this pull request Oct 3, 2026
…ack, not a counter (GH-158644) (GH-158654)

(cherry picked from commit d6d1ebc)

Co-authored-by: Bhuvansh <bhuvanshkataria@gmail.com>
Co-authored-by: An Long <aisk@users.noreply.github.com>
hugovk pushed a commit that referenced this pull request Oct 3, 2026
…ack, not a counter (GH-158644) (#158653)

Co-authored-by: Bhuvansh <bhuvanshkataria@gmail.com>
Co-authored-by: An Long <aisk@users.noreply.github.com>
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

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Doc: Py_EnterRecursiveCall uses C stack space, not a call counter

3 participants


Back | FazBrowse Home | New Git URL