This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jkloth
Recipients Wheerd, benjamin.peterson, brett.cannon, jkloth, ncoghlan, paul.moore, pitrou, scoder, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, yselivanov, zach.ware
Date 2017-08-06.17:27:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1502040445.69.0.770902351604.issue31113@psf.upfronthosting.co.za>
In-reply-to
Content
Using master to debug, the (first) offending part of the generated file is the get_match_iter() function.  The problem is not that there is too much nesting, rather it is simply the fact of too many if's period.

Simple testing at the command prompt (using master debug build) reveals the limit for just ifs is around 25000 (on Windows x64).  The actual limit is going to depend on the stack usage (debug/release/version of the C runtime).

To verify:

  exec('if a: b = 1\n' * 25150)

causes exceptions on my box.  The precise limit will vary somewhat.
History
Date User Action Args
2017-08-06 17:27:25jklothsetrecipients: + jkloth, brett.cannon, terry.reedy, paul.moore, ncoghlan, pitrou, scoder, tim.golden, benjamin.peterson, zach.ware, serhiy.storchaka, yselivanov, steve.dower, Wheerd
2017-08-06 17:27:25jklothsetmessageid: <1502040445.69.0.770902351604.issue31113@psf.upfronthosting.co.za>
2017-08-06 17:27:25jklothlinkissue31113 messages
2017-08-06 17:27:25jklothcreate