← Back to team overview

openerp-community team mailing list archive

Re: Style: dictionaries

 

The second one is the best for me.

Nella citazione in data mer 04 dic 2013 17:24:37 CET, Leonardo Pistone ha scritto:
Hi all,
I bring to your attention Sandy's review here:

https://code.launchpad.net/~camptocamp/stock-logistic-flows/6.1-add-mrp_open_lot_attributes-lep/+merge/196749
<https://code.launchpad.net/%7Ecamptocamp/stock-logistic-flows/6.1-add-mrp_open_lot_attributes-lep/+merge/196749>

according to pep8, two styles of indentation are possible. Take for
example a dictionary:

{'name': 'spam',
 'color': 'brown'
 }

or

{
    'name': 'eggs',
    'color': 'white'
}

According to the pep8 document and to the pep8 checker, they both
work. I personally would accept both.

What do you think?

Best, Leo


_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp


Follow ups

References