Ticket #1332 (closed bug: fixed)

Opened 12 months ago

Last modified 12 months ago

Orange.data.Value comparison for unknown values is inconsistent

Reported by: ales Owned by: ales
Milestone: Component: library
Severity: minor Keywords: value, data, sorting
Cc: Blocking:
Blocked By:


between the python and C++ part. In C++ the TValue.compare always treats unknowns as greater then known values, but in python the order is undetermined.

Change History

comment:1 Changed 12 months ago by Ales Erjavec <ales.erjavec@…>

  • Status changed from new to closed
  • Resolution set to fixed

In [e3921bbbecaaa503c6b02ded97b3a519650991f9/orange]:

Changed the Value_richcmp function's handling of unknown values.

It is now more consistent with TValue.compare method.

Will now raise a TypeError when testing equality between unknown values
of a different type.

(fixes #1332)

Note: See TracTickets for help on using tickets.