Commit d564a420 authored by Kipp Cannon's avatar Kipp Cannon

Merge branch 'python-segment-contains-2' into 'master'

Fixed bug in python implementation of segment.__contains__

See merge request !12
parents 1b44f7d2 aabcb7ea
Pipeline #26795 passed with stages
in 7 minutes
......@@ -454,7 +454,7 @@ class segment(tuple):
a, b = other
except ValueError:
except (ValueError, TypeError):
return self[0] <= other < self[1]
return (self[0] <= a) and (self[1] >= b)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment