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 terry.reedy
Recipients benjamin.peterson, brett.cannon, ncoghlan, serhiy.storchaka, terry.reedy, yselivanov
Date 2018-02-11.19:25:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1518377122.23.0.467229070634.issue32758@psf.upfronthosting.co.za>
In-reply-to
Content
If ast_parse returns, a correct tree (A) rather than a buggy tree is a hard requirement.  If ast_parse does not return,  an exception (B) rather than a crash is strongly desired.  We should not risk A to get B.  I presume that Serhiy is suggesting that option 1 either has such a risk or would consume developer resources that might be better spent on other improvements.

For Python, option 2, seems pretty useless for real code because there are much better ways to sum a long sequence: sum(iterable_of_numbers),  seq.append, ''.join(iterable_of_string).

Possible addition to the ast.parse entry.
"Syntactically correct but extremely long or complex source strings may result in a RecursionError or program crash."
History
Date User Action Args
2018-02-11 19:25:22terry.reedysetrecipients: + terry.reedy, brett.cannon, ncoghlan, benjamin.peterson, serhiy.storchaka, yselivanov
2018-02-11 19:25:22terry.reedysetmessageid: <1518377122.23.0.467229070634.issue32758@psf.upfronthosting.co.za>
2018-02-11 19:25:22terry.reedylinkissue32758 messages
2018-02-11 19:25:22terry.reedycreate