MCPcopy Create free account
hub / github.com/simplejson/simplejson / call_method

Function call_method

simplejson/encoder.py:470–477  ·  view source on GitHub ↗
(obj, method_name)

Source from the content-addressed store, hash-verified

468 raise TypeError("int_as_string_bitcount must be a positive integer")
469
470 def call_method(obj, method_name):
471 method = getattr(obj, method_name, None)
472 if callable(method):
473 try:
474 return (method(),)
475 except TypeError:
476 pass
477 return None
478
479 def _encode_int(value):
480 skip_quoting = (

Callers 3

_iterencode_listFunction · 0.85
_iterencode_dictFunction · 0.85
_iterencodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…