[Python-ideas] Is there a good reason to use * for multiplication?
Oleg Broytman
phd at phdru.name
Mon Oct 15 21:23:29 CEST 2012
On Mon, Oct 15, 2012 at 03:12:15PM -0400, Mike Graham <mikegraham at gmail.com> wrote:
> IMO it's essential that we add source code escapes. Imagine the
> one-liners this will allow!
>
> def f(xs):\n\ttry:\n\t\treturn x.pop()\n\texcept ValueError\n\t\treturn None
SyntaxError: a semicolon required after 'except ValueError'.
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-ideas
mailing list