MCPcopy Index your code
hub / github.com/clips/pattern / _make_iterencode

Function _make_iterencode

pattern/web/json/encoder.py:343–362  ·  view source on GitHub ↗
(markers, _default, _encoder, _indent, _floatstr,
        _key_separator, _item_separator, _sort_keys, _skipkeys, _one_shot,
        _use_decimal, _namedtuple_as_object, _tuple_as_array,
        _bigint_as_string, _item_sort_key,
        ## HACK: hand-optimized bytecode; turn globals into locals
        False=False,
        True=True,
        ValueError=ValueError,
        basestring=basestring,
        Decimal=Decimal,
        dict=dict,
        float=float,
        id=id,
        int=int,
        isinstance=isinstance,
        list=list,
        long=long,
        str=str,
        tuple=tuple,
    )

Source from the content-addressed store, hash-verified

341
342
343def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,
344 _key_separator, _item_separator, _sort_keys, _skipkeys, _one_shot,
345 _use_decimal, _namedtuple_as_object, _tuple_as_array,
346 _bigint_as_string, _item_sort_key,
347 ## HACK: hand-optimized bytecode; turn globals into locals
348 False=False,
349 True=True,
350 ValueError=ValueError,
351 basestring=basestring,
352 Decimal=Decimal,
353 dict=dict,
354 float=float,
355 id=id,
356 int=int,
357 isinstance=isinstance,
358 list=list,
359 long=long,
360 str=str,
361 tuple=tuple,
362 ):
363 if _item_sort_key and not callable(_item_sort_key):
364 raise TypeError("item_sort_key must be None or callable")
365

Callers 1

iterencodeMethod · 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…