Message141977
Pending an argument against, I agree with the change.
I think SyntaxError would be best. ValueError (etc) is for runtime (though this is compile during runtime).
What would you have for the error message? My first idea is
"Cannot compile multiple statements as a single statement."
This should be clear enough when calling compile(...'single').
It should at least give a hint in the doctest case. |
|
Date |
User |
Action |
Args |
2011-08-12 17:46:23 | terry.reedy | set | recipients:
+ terry.reedy, Devin Jeanpierre |
2011-08-12 17:46:23 | terry.reedy | set | messageid: <1313171183.08.0.347425684804.issue12705@psf.upfronthosting.co.za> |
2011-08-12 17:46:22 | terry.reedy | link | issue12705 messages |
2011-08-12 17:46:22 | terry.reedy | create | |
|