MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / dump_array

Method dump_array

tools/python-3.11.9-amd64/Lib/xmlrpc/client.py:581–591  ·  view source on GitHub ↗
(self, value, write)

Source from the content-addressed store, hash-verified

579 dispatch[bytearray] = dump_bytes
580
581 def dump_array(self, value, write):
582 i = id(value)
583 if i in self.memo:
584 raise TypeError("cannot marshal recursive sequences")
585 self.memo[i] = None
586 dump = self.__dump
587 write("<value><array><data>\n")
588 for v in value:
589 dump(v, write)
590 write("</data></array></value>\n")
591 del self.memo[i]
592 dispatch[tuple] = dump_array
593 dispatch[list] = dump_array
594

Callers

nothing calls this directly

Calls 3

idFunction · 0.50
writeFunction · 0.50
dumpFunction · 0.50

Tested by

no test coverage detected