[Python-ideas] PEP-3150
dag.odenhall at gmail.com
dag.odenhall at gmail.com
Thu Apr 14 17:00:13 CEST 2011
1. I don't like the special-cased docstring, but I suppose I could
simply opt to not use it myself.
2. I actually do like the added indentation; for me, a big point with
the given-statement is the readability, and the indentation hints at
the block's "secondary" nature and guides you toward the "primary"
statement.
One idea is to allow combining given and def:
orderly = sorted(disorderly, key=getscore) given def getscore(item):
return item.score
--
Dag
More information about the Python-ideas
mailing list