Thomas Wouters writes: > (getrlimit *does* work, so if we have getrlimit, we can 'calculate' the > maximum number of recursions from that.) Still no go -- we can calculate the number of recursions for a particular call frame size (or expected mix of frame sizes, which is really the same), but we can't predict recursive behavior inside a C extension, which is a significant part of the problem (witness the SRE experience). That's why PyOS_StackCheck() actually has to do more than test a counter -- if the counter is low but the call frames are larger than our estimate, it won't help. -Fred -- Fred L. Drake, Jr. <fdrake at beopen.com> BeOpen PythonLabs Team Member
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4