Python Gotcha's?

Chris Angelico rosuav at gmail.com
Sun Apr 8 00:21:42 EDT 2012


On Sun, Apr 8, 2012 at 2:19 PM, Chris Angelico <rosuav at gmail.com> wrote:
> Agreed. Putting an expression first feels weird; in every high level
> language I know of, the word "if" is followed by the condition, and
> then by what to do if true, and then what to do if false - not true,
> then condition, then false.

Clarification: I'm talking primarily about statement-if here. Not many
languages have an expression-if that isn't derived from either LISP or
C; both of those still have the three parts in the same order, so it
comes to the same thing. Python switches them around compared to that.

ChrisA



More information about the Python-list mailing list