Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12 changed recursion mechanism [1] #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stefanor
Copy link

sys.setrecursionlimit() and sys.getrecursionlimit(). The recursion limit now applies only to Python code. Builtin functions do not use the recursion limit, but are protected by a different mechanism that prevents recursion from causing a virtual machine crash.

so increasing recursion limit as py-ubjson did [2] makes your package buildable.

[1] https://docs.python.org/3/whatsnew/3.12.html#sys
[2] https://sources.debian.org/src/py-ubjson/0.16.1-3/debian/patches/py12_recursion_PR19.diff/

Origin: https://bugs.debian.org/1058027#10

sys.setrecursionlimit() and sys.getrecursionlimit(). The recursion limit
now applies only to Python code. Builtin functions do not use the
recursion limit, but are protected by a different mechanism that
prevents recursion from causing a virtual machine crash.

so increasing recursion limit as py-ubjson did [2] makes your package
buildable.

[1] https://docs.python.org/3/whatsnew/3.12.html#sys
[2] https://sources.debian.org/src/py-ubjson/0.16.1-3/debian/patches/py12_recursion_PR19.diff/

Origin: https://bugs.debian.org/1058027#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants