A Dimecres 19 Juny 2013 14:09:44, Cédric Krier va escriure: > Hi, > > In the same idea as the changeset [1], I would like to propose this > change for the write method: > > @classmethod > def write(cls, records, values): > … > > => > > @classmethod > def write(cls, records, values, *args): > assert not len(args) % 2 > all_records = [] > actions = iter((records, values) + args) > for records, values in zip(actions, actions): > … > all_records += records > > cls._validate(all_records)
For consistency and performance, copy() could also use the same syntax. At least stock_split module would benefit from the performance gain. -- Albert Cervera i Areny Consultor funcional Tel. 93 553 18 03 @albertnan www.NaN-tic.com
