diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-10-21 08:35:28 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-10-21 08:35:28 -0700 |
commit | 1aff1c22cdd94a9790be06ec385c5e97051934bf (patch) | |
tree | 7a0ff090fc70d389cbab1e4c8887ab311e4e1f13 /py/modules/IcePy/Proxy.cpp | |
parent | ICE-3635 - static factory maps (diff) | |
download | ice-1aff1c22cdd94a9790be06ec385c5e97051934bf.tar.bz2 ice-1aff1c22cdd94a9790be06ec385c5e97051934bf.tar.xz ice-1aff1c22cdd94a9790be06ec385c5e97051934bf.zip |
ICE-4831 - bogus comparison operators in Python
Diffstat (limited to 'py/modules/IcePy/Proxy.cpp')
-rw-r--r-- | py/modules/IcePy/Proxy.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/modules/IcePy/Proxy.cpp b/py/modules/IcePy/Proxy.cpp index da2f6529526..9e462cfd550 100644 --- a/py/modules/IcePy/Proxy.cpp +++ b/py/modules/IcePy/Proxy.cpp @@ -124,6 +124,10 @@ proxyCompare(ProxyObject* p1, PyObject* other, int op) break; } } + else if(other == Py_None) + { + result = op == Py_NE || op == Py_GE || op == Py_GT; + } else { if(op == Py_EQ) |