[Python-ideas] Is there a good reason to use * for multiplication?

Mike Graham mikegraham at gmail.com
Tue Oct 16 00:06:47 CEST 2012


On Mon, Oct 15, 2012 at 3:23 PM, Oleg Broytman <phd at phdru.name> wrote:
> 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.

Obviously we'd make those pesky semicolons optional in the process.

Mike



More information about the Python-ideas mailing list