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 — Doc: Py_EnterRecursiveCall uses C stack space, not a call counter · Issue #158643 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
#158644
Closed
Doc: Py_EnterRecursiveCall uses C stack space, not a call counter#158643
#158644
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-C-API

Description

@BHUVANSH855
BHUVANSH855
opened on Oct 3, 2026
Issue body actions

Documentation

As of 3.14, Py_EnterRecursiveCall and Py_LeaveRecursiveCall no longer use
a call counter (c_recursion_remaining); they compare the current C stack
pointer against tstate->c_stack_soft_limit.

The documentation still describes the check as "if the stack limit is reached"
without clarifying that this is actual C stack consumption, unaffected by
sys.setrecursionlimit(). This was noted by @ZeroIntensity in
#156205 (review)

Linked PRs

  • gh-158643: Doc: document that Py_EnterRecursiveCall uses C stack, not a counter #158644
  • [3.15] gh-158643: Document that Py_EnterRecursiveCall uses the C stack, not a counter (GH-158644) #158653
  • [3.14] gh-158643: Document that Py_EnterRecursiveCall uses the C stack, not a counter (GH-158644) #158654

Activity

  1. BHUVANSH855
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Oct 3, 2026
  2. github-project-automation
    added this to docs issueson Oct 3, 2026
  3. aisk
    added
    needs backport to 3.14bugs and security fixesbugs and security fixes
    needs backport to 3.15bugs and security fixesbugs and security fixes
    and removed
    needs backport to 3.14bugs and security fixesbugs and security fixes
    needs backport to 3.15bugs and security fixesbugs and security fixes
    on Oct 3, 2026
  4. StanFromIreland
    added
    topic-C-API
    on Oct 3, 2026
  5. ZeroIntensity commented on Oct 3, 2026

    @ZeroIntensity
    ZeroIntensity
    on Oct 3, 2026
    Member
    More actions

    (For future reference, we usually don't need a new issue for documentation changes.)

    Reacted by Bhuvansh
  6. ZeroIntensity
    added a commit that references this issue on Oct 3, 2026

    gh-158643: Document that `Py_EnterRecursiveCall` uses the C stack, no…

    d6d1ebc
  7. ZeroIntensity
    closed this as completedin #158644on Oct 3, 2026
  8. ZeroIntensity
    added a commit that references this issue on Oct 3, 2026

    [3.14] gh-158643: Document that `Py_EnterRecursiveCall` uses the C st…

    8d745f7
  9. hugovk
    added a commit that references this issue on Oct 3, 2026

    [3.15] gh-158643: Document that `Py_EnterRecursiveCall` uses the C st…

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-C-API

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.