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 ncoghlan
Recipients Trundle, benjamin.peterson, eric.snow, loewis, marienz, ncoghlan, pitrou, terry.reedy
Date 2011-07-16.07:56:40
SpamBayes Score 7.656653e-12
Marked as misclassified No
Message-id <1310803002.01.0.261332996509.issue11343@psf.upfronthosting.co.za>
In-reply-to
Content
+1 for a new exception type to indicate "this may technically be legal Python, but this Python implementation cannot handle it correctly"

Whatever exception type we add, it would be nice to also be able to use it if someone eventually fixes the compiler recursion crasher, so I'd like to paint this particular bikeshed as the more general "SyntaxLimitError".

Possible docs phrasing:

exception:: SyntaxLimitError

Raised when the compilation and code generation process encounters an error due to internal limitations of the current implementation (e.g. the CPython parser has an upper limit on the number of nested sets of parentheses it can handle in a single expression, but no such limitation exists in the Python language reference).
This is a subclass of :exc:`SyntaxError`.
History
Date User Action Args
2011-07-16 07:56:42ncoghlansetrecipients: + ncoghlan, loewis, terry.reedy, marienz, pitrou, benjamin.peterson, Trundle, eric.snow
2011-07-16 07:56:42ncoghlansetmessageid: <1310803002.01.0.261332996509.issue11343@psf.upfronthosting.co.za>
2011-07-16 07:56:41ncoghlanlinkissue11343 messages
2011-07-16 07:56:40ncoghlancreate