Home
last modified time | relevance | path

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

/external/libmojo/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.py166 self.assertRaises(ZeroDivisionError, (1+1j).__mod__, 0+0j)
424 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)
Dtest_itertools.py378 r2 = 'count(%r)'.__mod__(i).replace('L', '')
/external/python/cpython2/Lib/
Dnumbers.py227 def __mod__(self, other): member in Real
DUserString.py58 def __mod__(self, args): member in UserString
Dfractions.py441 def __mod__(a, b): member in Fraction
Dcollections.py621 items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
Ddecimal.py1436 def __mod__(self, other, context=None): member in Decimal
1468 return other.__mod__(self, context=context)
5143 r = a.__mod__(b, context=self)
/external/libmojo/third_party/jinja2/
Druntime.py495 __mod__ = __rmod__ = __pos__ = __neg__ = __call__ = \
/external/python/cpython2/Modules/
Doperator.c394 spam2(mod,__mod__, "mod(a, b) -- Same as a % b.")
/external/python/cpython2/Doc/library/
Doperator.rst146 __mod__(a, b)
/external/python/cpython2/Doc/howto/
Dpyporting.rst214 __mod__ (``%`` operator)
/external/python/cpython2/Doc/reference/
Ddatamodel.rst2084 object.__mod__(self, other)
2103 equivalent to using :meth:`__floordiv__` and :meth:`__mod__`; it should not be
/external/python/cpython2/Misc/
Dcheatsheet1184 s%o = __mod__(s,o) divmod(s,o) = __divmod__(s,o)
DNEWS4928 - Issue #10596: Fix float.__mod__ to have the same behaviour as