← Back to team overview

openerp-community team mailing list archive

Re: OCA guidelines for code compatibility with Python 2.6

 

On 2014-02-24 20:00, Daniel Reis wrote:

I think in general the code should be 2.6 compatible for.
For example: in September 2013 the available virtual debian image came with python 2.6

camptocamp for example uses a specially compiled python version for the OpenERP server to avoid python conflicts with the distributed python version.
with this setup strategy one is on the save side.

just my 2¢

Hi all,

In a merge proposal for 7.0. came up the question of what Python versions should the code be compatible with.

In particular, a dictionay comprehension is used the, available in Python 2.7 but not compatible with Python 2.6. For reference, the MP is: https://code.launchpad.net/~dreis-pt/project-service/7.0-issue_task-dr/+merge/195985

So, the question here is:
Regarding OCA reviewed modules, should the code targeting OpenERP >= 7.0 be made to keep Python 2.6 compatibility?

Regards

Daniel Reis


_______________________________________________
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


--
Ferdinand


Follow ups

References