MCPcopy Index your code
hub / github.com/RustPython/RustPython / handle

Method handle

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

Source from the content-addressed store, hash-verified

153 diagnostic information.
154 """
155 def handle(self, context, *args):
156 if args:
157 ans = _dec_from_triple(args[0]._sign, args[0]._int, 'n', True)
158 return ans._fix_nan(context)
159 return _NaN
160
161class ConversionSyntax(InvalidOperation):
162 """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