← Back to team overview

openerp-community team mailing list archive

Re: Style: dictionaries

 

On 12/04/2013 06:42 PM, Sandy Carter wrote:
I personally like the 2nd, but the point I was raising was in the
specific case of the __openerp__.py dictionary:

{'name': 'Module Name',
  'version: '1.0',
  ...
  }

While it is perfectly pep8 legal, it looks odd.


__openerp__.py is a place where I definitely prefer the

{'name': 'Module Name',
 'version': '1.0',
 }

version than

{
    'name': 'Module Name',
    'version': '1.0',
}

So, a matter of taste and color...

We could also come up with:

dict(name='Module Name',
     version='1.0')

;-)

--
Guewen


Follow ups

References