[issue3373] sys recursion limit a lot shorter on trunk?

Antoine Pitrou report at bugs.python.org
Wed Jul 16 13:20:31 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Why was 1000 chosen in the first place? If it's just an arbitrary value
then we can bump it to 4000 so that people don't get bad surprises when
upgrading their Python.

> This looks more
> like the interpreter is adding 4x the number of items to the stack
> during the construction of the nested object, which seems pretty
> surprising/broken...

Well PyObject_Call increases the recursion count, and entering __init__
will increase it once more. That explains the 2x, not the 4x though.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3373>
_______________________________________


More information about the Python-bugs-list mailing list