Searched refs:fallback_operator (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/ |
D | fractions.py | 280 def _operator_fallbacks(monomorphic_operator, fallback_operator): argument 364 return fallback_operator(float(a), b) 366 return fallback_operator(complex(a), b) 369 forward.__name__ = '__' + fallback_operator.__name__ + '__' 377 return fallback_operator(float(a), float(b)) 379 return fallback_operator(complex(a), complex(b)) 382 reverse.__name__ = '__r' + fallback_operator.__name__ + '__'
|
/external/python/cpython3/Lib/ |
D | fractions.py | 294 def _operator_fallbacks(monomorphic_operator, fallback_operator): argument 378 return fallback_operator(float(a), b) 380 return fallback_operator(complex(a), b) 383 forward.__name__ = '__' + fallback_operator.__name__ + '__' 391 return fallback_operator(float(a), float(b)) 393 return fallback_operator(complex(a), complex(b)) 396 reverse.__name__ = '__r' + fallback_operator.__name__ + '__'
|
/external/python/cpython3/Doc/library/ |
D | numbers.rst | 187 def _operator_fallbacks(monomorphic_operator, fallback_operator): 192 return fallback_operator(float(a), b) 194 return fallback_operator(complex(a), b) 197 forward.__name__ = '__' + fallback_operator.__name__ + '__' 205 return fallback_operator(float(a), float(b)) 207 return fallback_operator(complex(a), complex(b)) 210 reverse.__name__ = '__r' + fallback_operator.__name__ + '__'
|
/external/python/cpython2/Doc/library/ |
D | numbers.rst | 184 def _operator_fallbacks(monomorphic_operator, fallback_operator): 189 return fallback_operator(float(a), b) 191 return fallback_operator(complex(a), b) 194 forward.__name__ = '__' + fallback_operator.__name__ + '__' 202 return fallback_operator(float(a), float(b)) 204 return fallback_operator(complex(a), complex(b)) 207 reverse.__name__ = '__r' + fallback_operator.__name__ + '__'
|