Title: Doc: Py_EnterRecursiveCall uses C stack space, not a call counter · Issue #158643 · python/cpython · GitHub
Open Graph Title: Doc: Py_EnterRecursiveCall uses C stack space, not a call counter · Issue #158643 · python/cpython
X Title: Doc: Py_EnterRecursiveCall uses C stack space, not a call counter · Issue #158643 · python/cpython
Description: 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 describe...
Open Graph Description: 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...
X Description: 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_s...
Opengraph URL: https://github.com/python/cpython/issues/158643
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Doc: Py_EnterRecursiveCall uses C stack space, not a call counter","articleBody":"### Documentation\n\nAs of 3.14, `Py_EnterRecursiveCall` and `Py_LeaveRecursiveCall` no longer use\na call counter (`c_recursion_remaining`); they compare the current C stack\npointer against `tstate->c_stack_soft_limit`.\n\nThe documentation still describes the check as \"if the stack limit is reached\"\nwithout clarifying that this is actual C stack consumption, unaffected by\n`sys.setrecursionlimit()`. This was noted by @ZeroIntensity in\nhttps://github.com/python/cpython/pull/156205#pullrequestreview-\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-158644\n* gh-158653\n* gh-158654\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/BHUVANSH855","@type":"Person","name":"BHUVANSH855"},"datePublished":"2026-10-03T10:01:50Z","url":"https://github.com/python/cpython/issues/158643"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2fa06a5a-6162-2b41-7d6b-e47836a78937 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2F6:65478:38C6ACD:4B4E09C:6B020E00 |
| html-safe-nonce | bda3c811fda84d404e44011b7ec1c790a870e4e9b5f181e71f8dd5b461c89a92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkY2OjY1NDc4OjM4QzZBQ0Q6NEI0RTA5Qzo2QjAyMEUwMCIsInZpc2l0b3JfaWQiOiIyMTk0NDgwNzc1MzgwOTk1NTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 79ab68945e7ad54e458c986593204ab87817213d341733385e40a54171219eef |
| hovercard-subject-tag | issue:5688573991 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/158643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a55d3ba7ab169ea33c53ad07ae9ac93c6f8e901825570fa995786f98589e59c/python/cpython/issues/158643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a55d3ba7ab169ea33c53ad07ae9ac93c6f8e901825570fa995786f98589e59c/python/cpython/issues/158643 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BHUVANSH855 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width