Skip to content

Commit 37f4365

Browse files
committed
[Python] Remove TObject __eq__ pythonization
The TObject `__eq__` pythonization calls `TObject::Equals()`, which by default does a pointer comparison. That can be very confusing for Python users.
1 parent 84c0de6 commit 37f4365

File tree

1 file changed

+0
-2
lines changed
  • bindings/pyroot/pythonizations/python/ROOT/_pythonization

1 file changed

+0
-2
lines changed

bindings/pyroot/pythonizations/python/ROOT/_pythonization/_tobject.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# For the list of contributors see $ROOTSYS/README/CREDITS. #
99
################################################################################
1010

11-
from ROOT.libROOTPythonizations import AddTObjectEqNePyz
1211
import cppyy
1312

1413
# Searching
@@ -56,7 +55,6 @@ def pythonize_tobject():
5655
klass.__contains__ = _contains
5756

5857
# Inject comparison operators
59-
AddTObjectEqNePyz(klass)
6058
klass.__lt__ = _lt
6159
klass.__le__ = _le
6260
klass.__gt__ = _gt

0 commit comments

Comments
 (0)