python syntax for conditional is unfortunate

namekuseijin namekuseijin at gmail.com
Wed Sep 24 04:32:31 CEST 2008


On 23 set, 22:50, Neal Becker <ndbeck... at gmail.com> wrote:
> I find I'm often tripped up by:
>
> x = Y (lots of  constructor arguments....) if something ...
>
> on first glance, I don't notice the if.

Nobody does.  This peculiar syntax has much better usage in short
expressions.  dothis if this else dothat



More information about the Python-list mailing list