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

Function _iterencode_once

Lib/json/encoder.py:451–457  ·  view source on GitHub ↗
(o, _current_indent_level)

Source from the content-addressed store, hash-verified

449 del markers[markerid]
450
451 def _iterencode_once(o, _current_indent_level):
452 nonlocal _iterencode, _iterencode_dict, _iterencode_list
453 try:
454 yield from _iterencode(o, _current_indent_level)
455 finally:
456 # Break reference cycles due to mutually recursive closures:
457 del _iterencode, _iterencode_dict, _iterencode_list
458
459 return _iterencode_once

Callers

nothing calls this directly

Calls 1

_iterencodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…