MCPcopy Index your code
hub / github.com/python/cpython / __neg__

Method __neg__

Lib/fractions.py:939–941  ·  view source on GitHub ↗

-a

(a)

Source from the content-addressed store, hash-verified

937 return Fraction._from_coprime_ints(a._numerator, a._denominator)
938
939 def __neg__(a):
940 """-a"""
941 return Fraction._from_coprime_ints(-a._numerator, a._denominator)
942
943 def __abs__(a):
944 """abs(a)"""

Callers

nothing calls this directly

Calls 1

_from_coprime_intsMethod · 0.80

Tested by

no test coverage detected