List Comprehension Syntax
François Pinard
pinard at iro.umontreal.ca
Mon Jul 12 10:59:45 EDT 2004
[Peter Hansen]
> François Pinard wrote:
> >... for me at least, the greatest virtue of Python is that one can
> >write it legibly, and maintainability mainly results from legibility.
> I don't find the legibility of the carefully aligned version of
> that code to be higher than the simpler "indent the standard amount"
> version of the code.
That's the important point. Write for legibility! :-)
> [...] same as how I used to waste time lining up the equals signs in
> initialization sections of my code.
Yes, this is often abused, with not much gain. Agreed!
> (Wow... a simultaneous segue into both the tab war and the editor
> wars! I think I'd better leave now...)
We'll surely meet somewhere else, anyway! :-)
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list