MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / reverse

Method reverse

tools/python-3.11.9-amd64/Lib/fractions.py:369–378  ·  view source on GitHub ↗
(b, a)

Source from the content-addressed store, hash-verified

367 forward.__doc__ = monomorphic_operator.__doc__
368
369 def reverse(b, a):
370 if isinstance(a, numbers.Rational):
371 # Includes ints.
372 return monomorphic_operator(a, b)
373 elif isinstance(a, numbers.Real):
374 return fallback_operator(float(a), float(b))
375 elif isinstance(a, numbers.Complex):
376 return fallback_operator(complex(a), complex(b))
377 else:
378 return NotImplemented
379 reverse.__name__ = '__r' + fallback_operator.__name__ + '__'
380 reverse.__doc__ = monomorphic_operator.__doc__
381

Callers 13

_groupFunction · 0.45
_expand_langFunction · 0.45
parse_partsMethod · 0.45
extract_stackFunction · 0.45
__methodDictFunction · 0.45
reverse_orderMethod · 0.45
lasti2linenoFunction · 0.45
get_stackMethod · 0.45
_wrap_chunksMethod · 0.45
showFunction · 0.45
_random_dataFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected