ovh / python-ovh

Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
https://pypi.org/project/ovh/
Other
297 stars 81 forks source link

Preserve dict key order #38

Closed yadutaf closed 7 years ago

yadutaf commented 7 years ago

This PR adds an option to preserve key order in dict. This option is off by default as it potentially impacts performances. Main use case: when writing CLIs (like ovh-cli) or reflexion tools, yo may assume that keys order is meaningful or, at least, is consistent between runs.

Note: getting it to pass the tests on python 2.6 and 3.2 is a pain. Most oddities in PR are caused by this.

yadutaf commented 7 years ago

Closing by lack of obvious enthusiasm :)