Skip to content

Commit a572c5a

Browse files
author
Christopher Rowley
committed
restore methods for !=, >= and >
1 parent 0225c36 commit a572c5a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Core/Py.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,11 @@ Base.broadcastable(x::Py) = Ref(x)
358358

359359
# comparisons
360360
Base.:(==)(x::Py, y::Py) = pyeq(Bool, x, y)
361+
Base.:(!=)(x::Py, y::Py) = pyne(Bool, x, y)
361362
Base.:(<=)(x::Py, y::Py) = pyle(Bool, x, y)
363+
Base.:(>=)(x::Py, y::Py) = pyge(Bool, x, y)
362364
Base.:(<)(x::Py, y::Py) = pylt(Bool, x, y)
365+
Base.:(>)(x::Py, y::Py) = pygt(Bool, x, y)
363366
Base.isless(x::Py, y::Py) = pylt(Bool, x, y)
364367
Base.isequal(x::Py, y::Py) = pyeq(Bool, x, y)
365368

@@ -376,11 +379,9 @@ Base.:(~)(x::Py) = pyinv(x)
376379
Base.:(+)(x::Py, y::Py) = pyadd(x, y)
377380
Base.:(-)(x::Py, y::Py) = pysub(x, y)
378381
Base.:(*)(x::Py, y::Py) = pymul(x, y)
379-
# Base.:(+)(x::Py, y::Py) = pymatmul(x, y)
380382
Base.div(x::Py, y::Py) = pyfloordiv(x, y)
381383
Base.:(/)(x::Py, y::Py) = pytruediv(x, y)
382384
Base.rem(x::Py, y::Py) = pymod(x, y)
383-
# Base.:(+)(x::Py, y::Py) = pydivmod(x, y)
384385
Base.:(<<)(x::Py, y::Py) = pylshift(x, y)
385386
Base.:(>>)(x::Py, y::Py) = pyrshift(x, y)
386387
Base.:(&)(x::Py, y::Py) = pyand(x, y)

0 commit comments

Comments
 (0)