homepage

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 Devin Jeanpierre, terry.reedy
Date 2011年08月12日.17:46:22
SpamBayes Score 0.0020307952
Marked as misclassified No
Message-id <1313171183.08.0.347425684804.issue12705@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011年08月12日 17:46:23terry.reedysetrecipients: + terry.reedy, Devin Jeanpierre
2011年08月12日 17:46:23terry.reedysetmessageid: <1313171183.08.0.347425684804.issue12705@psf.upfronthosting.co.za>
2011年08月12日 17:46:22terry.reedylinkissue12705 messages
2011年08月12日 17:46:22terry.reedycreate

AltStyle によって変換されたページ (->オリジナル) /