Message296225
Python grammar is constrained to be, I believe, LL(1). Whatever the constraint is, there are a few syntax rules that either cannot be written or would be difficult to write within the constraint. So they are checked during compilation. Can you suggest a couple of sentences you would have like to have seen, and where?
I might also note that not all exceptions raised by compile are literally 'SyntaxError's. |
|
Date |
User |
Action |
Args |
2017-06-17 01:45:01 | terry.reedy | set | recipients:
+ terry.reedy, ncoghlan, hniksic, docs@python, enedil |
2017-06-17 01:45:01 | terry.reedy | set | messageid: <1497663901.68.0.743728944502.issue30637@psf.upfronthosting.co.za> |
2017-06-17 01:45:01 | terry.reedy | link | issue30637 messages |
2017-06-17 01:45:01 | terry.reedy | create | |
|