On May 4, 2005, at 2:29 PM, Fredrik Lundh wrote: > Gustavo J. A. M. Carneiro wrote: > > >> I have not read every email about this subject, so sorry if this >> has >> already been mentioned. >> >> In PEP 340 I read: >> >> block EXPR1 as VAR1: >> BLOCK1 >> >> I think it would be much clearer this (plus you save one keyword): >> >> block VAR1 = EXPR1: >> BLOCK1 >> > > clearer for whom? where else is this construct used in Python? It might be more clear to have the "var" on the left. The only place it's used on the right (that I know of) is in import statements when using the "as" clause. Assignment, for loops, generator expressions, list comprehensions, etc. always have the var on the left. -bob
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4