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

Method handle

Lib/_pydecimal.py:158–162  ·  view source on GitHub ↗
(self, context, *args)

Source from the content-addressed store, hash-verified

156 diagnostic information.
157 """
158 def handle(self, context, *args):
159 if args:
160 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
161 return ans._fix_nan(context)
162 return _NaN
163
164class ConversionSyntax(InvalidOperation):
165 """Trying to convert badly formed string.

Callers

nothing calls this directly

Calls 2

_dec_from_tripleFunction · 0.85
_fix_nanMethod · 0.80

Tested by

no test coverage detected