-
Notifications
You must be signed in to change notification settings - Fork 21
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
Low recusion limit with Python 3.12 #92
Comments
The This challenge has been a focal point since the library's early development stages. With Python 3.11, there was a significant change: Pure Python recursion won't induce C-level recursion anymore. This separation appeared to address the issue initially. However, the introduction of a hardcoded limit on C-level recursion in Python 3.12 Since To address this issue comprehensively, a backward-incompatible change is proposed: In the namespace associated with a However, this change comes with some backward compatibility issues:
This restructuring aims to future-proof |
In Python 3.12, C level recusion limit is introduced:
python/cpython#112215
As a result, the maximum number of formula recusions in modelx is significantly lowered from 100,000+ down to slightly less than 500.
Workaound in modelx may be implemented, but Python core developers have intension to introduce a mechanism that adjust the limit according to the available C stack size.
modelx users should be advised not to upgrade Python to 3.12 at the moment.
The text was updated successfully, but these errors were encountered: