Changeset 11662:a5e7af509f58 in orange


Ignore:
Timestamp:
08/19/13 14:57:24 (8 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed Example_richcmp method when the other argument is not an TPyExample.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/cls_example.cpp

    r10960 r11662  
    10801080PyObject *Example_richcmp(TPyExample *one, TPyExample *another, int op) 
    10811081{ PyTRY 
     1082    if (!PyOrExample_Check(another)) { 
     1083        Py_INCREF(Py_NotImplemented); 
     1084        return Py_NotImplemented; 
     1085    } 
     1086 
    10821087    PExample rone = PyExample_AS_Example(one); 
    10831088    TExample &ranother = PyExample_AS_ExampleReference(another); 
Note: See TracChangeset for help on using the changeset viewer.