they did finally add assignments in expressions and conditional expressions, but every time i show a list comprehension to a java programmer they glaze over
so i guess some weird syntax is okay
we were talking about weird syntax, not weird semantics
That's a good thing.
if 1:
and remove all its internal blank lines and add a blank line after itmy comment makes no sense if you read it assuming i think it's a bad thing
what it is is a weird thing
but then i checked all your comments and sure enough it is pythonic english
weird syntax is okay and some punctuation may be redundant but it sure makes life easier for the eye
> python's syntax is whitespace-sensitive and doesn't have curly braces around blocks
that's a plus. the proof is in the pudding. one language has exploded. others haven't. the end.
my comment makes no sense if you read it assuming i think it's a bad thing
what it is is a weird thing
Consitional expressions were added in Python 2.5 in 2006.
assignment in expressions took even longer