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

Brett Cannon report at bugs.python.org
Wed Jul 16 20:25:48 CEST 2008

Brett Cannon <brett at python.org> added the comment:

On Wed, Jul 16, 2008 at 4:20 AM, Antoine Pitrou <report at bugs.python.org> wrote:
> 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.

It was originally 10,000, but people wanted thread switches to occur more often.

>> 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.

As I said, without a comparison of traces this is continue to just be
speculation (and I don't have the time to do that).

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list