Created
December 5, 2015 23:58
-
-
Save anaselli/e193961f26708d9d465a to your computer and use it in GitHub Desktop.
python 3 binding YWidget comparison fails (and YItem too)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/swig/yui.i 2015-12-05 21:09:48.996373277 +0100 | |
+++ b/swig/yui.i 2015-12-06 00:22:11.517161595 +0100 | |
@@ -278,8 +278,10 @@ class Exception; | |
{ return ($self != i); } | |
#endif | |
#if defined(SWIGPYTHON) | |
- int __cmp__( YItem *i ) | |
- { return ($self - i); } | |
+ int __eq__( YItem *i ) | |
+ { return ($self == i); } | |
+ int __ne__( YItem *i ) | |
+ { return ($self != i); } | |
#endif | |
#if defined(SWIGRUBY) | |
%rename( "==" ) equals( YItem *i ); | |
@@ -304,8 +306,10 @@ typedef std::vector<YItem *> YItemCollec | |
{ return ($self != w); } | |
#endif | |
#if defined(SWIGPYTHON) | |
- int __cmp__( YWidget *w ) | |
- { return ($self - w); } | |
+ int __eq__( YWidget *w ) | |
+ { return ($self == w); } | |
+ int __ne__( YWidget *w ) | |
+ { return ($self != w); } | |
#endif | |
#if defined(SWIGRUBY) | |
%rename( "==" ) equals( YWidget *w ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment