Index: src/org/python/modules/operator.java =================================================================== --- src/org/python/modules/operator.java (revision 3414) +++ src/org/python/modules/operator.java (working copy) @@ -58,6 +58,9 @@ case 34: return arg1._ne(arg2); case 35: return arg1._truediv(arg2); case 36: return arg1._pow(arg2); + case 37: return arg1._is(arg2); + case 38: return arg1._isnot(arg2); + default: throw info.unexpectedCall(2, false); } @@ -201,6 +204,12 @@ new OperatorFunctions("__truediv__", 35, 2)); dict.__setitem__("pow", new OperatorFunctions("pow", 36, 2)); dict.__setitem__("__pow__", new OperatorFunctions("pow", 36, 2)); + dict.__setitem__("is_", new OperatorFunctions("is_", 37, 2)); + dict.__setitem__("__is__", + new OperatorFunctions("__is__", 37, 2)); + dict.__setitem__("is_not", new OperatorFunctions("is_not", 38, 2)); + dict.__setitem__("__is_not__", + new OperatorFunctions("__is_not__", 38, 2)); } public static int countOf(PyObject seq, PyObject item) { Index: Lib/test/test_bool.py =================================================================== --- Lib/test/test_bool.py (revision 3414) +++ Lib/test/test_bool.py (working copy) @@ -339,11 +339,6 @@ def __nonzero__(self): return self check(Baz()) - -# Jython transition 2.3 -#operator missing is function -# http://jython.org/bugs/1758315 -del BoolTest.test_operator # boolean attribute returns int not bool # http://jython.org/bugs/1758276 del BoolTest.test_fileclosed Index: Lib/test/test_operator.py =================================================================== --- Lib/test/test_operator.py (revision 3414) +++ Lib/test/test_operator.py (working copy) @@ -227,11 +227,7 @@ self.failIf(operator.is_not(a, b)) self.failUnless(operator.is_not(a,c)) -def test_main(): - # Jython transition 2.3 - # operator is missing is and is_not http://jython.org/bugs/1758315 - del OperatorTestCase.test_is - del OperatorTestCase.test_is_not +def test_main(): test_support.run_unittest(OperatorTestCase)