Skip to content

Commit 7cc0f45

Browse files
committed
Delete unnecessary comparison operators
These are already defined by Base in terms of other comparison operators, so they cause a ton of invalidations.
1 parent 4fa1228 commit 7cc0f45

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Core/Py.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -358,30 +358,21 @@ Base.broadcastable(x::Py) = Ref(x)
358358

359359
# comparisons
360360
Base.:(==)(x::Py, y::Py) = pyeq(x, y)
361-
Base.:(!=)(x::Py, y::Py) = pyne(x, y)
362361
Base.:(<=)(x::Py, y::Py) = pyle(x, y)
363362
Base.:(<)(x::Py, y::Py) = pylt(x, y)
364-
Base.:(>=)(x::Py, y::Py) = pyge(x, y)
365-
Base.:(>)(x::Py, y::Py) = pygt(x, y)
366363
Base.isless(x::Py, y::Py) = pylt(Bool, x, y)
367364
Base.isequal(x::Py, y::Py) = pyeq(Bool, x, y)
368365

369366
# we also allow comparison with numbers
370367
Base.:(==)(x::Py, y::Number) = pyeq(x, y)
371-
Base.:(!=)(x::Py, y::Number) = pyne(x, y)
372368
Base.:(<=)(x::Py, y::Number) = pyle(x, y)
373369
Base.:(<)(x::Py, y::Number) = pylt(x, y)
374-
Base.:(>=)(x::Py, y::Number) = pyge(x, y)
375-
Base.:(>)(x::Py, y::Number) = pygt(x, y)
376370
Base.isless(x::Py, y::Number) = pylt(Bool, x, y)
377371
Base.isequal(x::Py, y::Number) = pyeq(Bool, x, y)
378372

379373
Base.:(==)(x::Number, y::Py) = pyeq(x, y)
380-
Base.:(!=)(x::Number, y::Py) = pyne(x, y)
381374
Base.:(<=)(x::Number, y::Py) = pyle(x, y)
382375
Base.:(<)(x::Number, y::Py) = pylt(x, y)
383-
Base.:(>=)(x::Number, y::Py) = pyge(x, y)
384-
Base.:(>)(x::Number, y::Py) = pygt(x, y)
385376
Base.isless(x::Number, y::Py) = pylt(Bool, x, y)
386377
Base.isequal(x::Number, y::Py) = pyeq(Bool, x, y)
387378

0 commit comments

Comments
 (0)