Author iritkatriel
Recipients iritkatriel, myzhang1029
Date 2020-09-23.23:11:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The error is coming from here:

and CO_MAXBLOCKS is defined in Include/cpython/code.h
#define CO_MAXBLOCKS 20 /* Max static block nesting within a function */

This is not about recursion or about exception, it's about static nesting level. 

There is an example here showing an input that gives the same error with >20 nested while blocks:
Date User Action Args
2020-09-23 23:11:01iritkatrielsetrecipients: + iritkatriel, myzhang1029
2020-09-23 23:11:01iritkatrielsetmessageid: <>
2020-09-23 23:11:01iritkatriellinkissue39934 messages
2020-09-23 23:11:01iritkatrielcreate