[CentralOH] RPH [IbPy] fix cmp function for python 3 (#22) (fwd)
R P Herrold
herrold at owlriver.com
Thu Feb 18 12:37:29 EST 2016
An interesting 'corner case' addition for people doing Python
porting
---------- Forwarded message ----------
Date: Thu, 18 Feb 2016 12:06:58
From: Simon Lemieux <notifications at github.com>
Reply-To: blampe/IbPy
<reply+00024f06eecd217c16bfd06271979fd5f5693770166634de92cf0000000112ddbc329
2a169ce080669c4 at reply.github.com>
To: blampe/IbPy <IbPy at noreply.github.com>
Subject: [IbPy] fix cmp function for python 3 (#22)
The "cmp" function doesn't exist in python 3 and 2to3 isn't taking care of it.
Here is a quick fix based on http://python3porting.com/differences.html#comparisons
You can view, comment on, or merge this pull request online at:
https://github.com/blampe/IbPy/pull/22
-- Commit Summary --
* fix cmp function for python 3
-- File Changes --
M ib/ext/Util.py (11)
-- Patch Links --
https://github.com/blampe/IbPy/pull/22.patch
https://github.com/blampe/IbPy/pull/22.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/blampe/IbPy/pull/22
More information about the CentralOH
mailing list