Pythonic list/tuple/dict layout?

Aahz aahz at pythoncraft.com
Sun Feb 1 13:57:56 EST 2009


In article <871vur39k7.fsf at benfinney.id.au>,
Ben Finney  <bignose+hates-spam at benfinney.id.au> wrote:
>
>I actually use this style:
>
>    foo = {
>        0: 'spam',
>        1: 'eggs',
>        2: 'beans',
>        }
>
>because that makes it clear that *all* the indented lines are a
>continuation of the same statement, just like a suite of statements
>are all uniformly indented under (e.g.) a function definition.

Ditto
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.



More information about the Python-list mailing list