Home
last modified time | relevance | path

Searched refs:__mod__ (Results 1 – 25 of 47) sorted by relevance

12

/external/libchrome/third_party/markupsafe/
D__init__.py94 def __mod__(self, arg): member in Markup
99 return self.__class__(text_type.__mod__(self, arg))
/external/python/cpython2/Lib/test/
Dtest_opcodes.py107 def __mod__(self, value): member in OpcodeTest.test_modulo_of_string_subclasses.MyString
Dtest_augassign.py175 def __mod__(self, val): member in AugAssignTest.testCustomMethods2.testall
Dtest_coercion.py81 def __mod__(self,other): member in MethodNumber
Dtest_binop.py188 def __mod__(self, other): member in Rat
Dtest_complex.py173 self.assertRaises(ZeroDivisionError, (1+1j).__mod__, 0+0j)
431 def __mod__(self,other): member in ComplexTest.test_subclass.xcomplex
Dtest_unicode.py610 self.assertRaises(OverflowError, u"%c".__mod__, (sys.maxunicode+1,))
611 self.assertRaises(ValueError, u"%.1\u1032f".__mod__, (1.0/3))
625 self.assertRaises(UnicodeDecodeError, u"%c".__mod__, chr(num))
626 self.assertRaises(UnicodeDecodeError, u"%s".__mod__, chr(num))
Dtest_str.py39 self.assertRaises(OverflowError, '%c'.__mod__, 0x1234)
/external/python/cpython3/Lib/test/
Dtest_opcodes.py132 def __mod__(self, value): member in OpcodeTest.test_modulo_of_string_subclasses.MyString
Dtest_augassign.py174 def __mod__(self, val): member in AugAssignTest.testCustomMethods2.testall
Dtest_complex.py163 self.assertRaises(TypeError, (1+1j).__mod__, 0+0j)
165 self.assertRaises(TypeError, (1+1j).__mod__, 4.3j)
Dtest_binop.py179 def __mod__(self, other): member in Rat
Dtest_unicode.py1356 self.assertRaises(OverflowError, "%c".__mod__, (0x110000,))
1358 self.assertRaises(TypeError, "%c".__mod__, "aa")
1359 self.assertRaises(ValueError, "%.1\u1032f".__mod__, (1.0/3))
1360 self.assertRaises(TypeError, "%i".__mod__, "aa")
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_operators.py58 ragged_tensor.RaggedTensor.__mod__ = math_ops.floormod
/external/python/cpython3/Lib/
Dnumbers.py224 def __mod__(self, other): member in Real
Doperator.py435 __mod__ = mod variable
Dfractions.py438 def __mod__(a, b): member in Fraction
/external/python/cpython2/Lib/
Dnumbers.py227 def __mod__(self, other): member in Real
Dfractions.py441 def __mod__(a, b): member in Fraction
DUserString.py58 def __mod__(self, args): member in UserString
Dcollections.py621 items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
/external/tensorflow/tensorflow/python/distribute/
Dvalues.py333 def __mod__(self, o): return self.get() % o member in DistributedDelegate
848 def __mod__(self, o): return self.read_value() % o member in TPUMirroredVariable
1547 def __mod__(self, o): return self._v % o member in AggregatingVariable
/external/tensorflow/tensorflow/python/framework/
Dtensor_shape.py519 def __mod__(self, other): member in Dimension
/external/python/cpython3/Lib/collections/
D__init__.py707 items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
1193 def __mod__(self, args): member in UserString
/external/libchrome/third_party/jinja2/
Druntime.py645 __mod__ = __rmod__ = __pos__ = __neg__ = __call__ = \

12