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

Function loads

Lib/xmlrpc/client.py:993–1005  ·  view source on GitHub ↗

data -> unmarshalled data, method name Convert an XML-RPC packet to unmarshalled data plus a method name (None if not present). If the XML-RPC packet represents a fault condition, this function raises a Fault exception.

(data, use_datetime=False, use_builtin_types=False)

Source from the content-addressed store, hash-verified

991# @see Fault
992
993def loads(data, use_datetime=False, use_builtin_types=False):
994 """data -> unmarshalled data, method name
995
996 Convert an XML-RPC packet to unmarshalled data plus a method
997 name (None if not present).
998
999 If the XML-RPC packet represents a fault condition, this function
1000 raises a Fault exception.
1001 """
1002 p, u = getparser(use_datetime=use_datetime, use_builtin_types=use_builtin_types)
1003 p.feed(data)
1004 p.close()
1005 return u.close(), u.getmethodname()
1006
1007##
1008# Encode a string using the gzip content encoding such as specified by the

Callers 1

_marshaled_dispatchMethod · 0.90

Calls 4

getparserFunction · 0.85
getmethodnameMethod · 0.80
feedMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…