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

Function getargvalues

Lib/inspect.py:1353–1361  ·  view source on GitHub ↗

Get information about arguments passed into a particular frame. A tuple of four things is returned: (args, varargs, varkw, locals). 'args' is a list of the argument names. 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'locals' is the locals dictionary of the

(frame)

Source from the content-addressed store, hash-verified

1351ArgInfo = namedtuple('ArgInfo', 'args varargs keywords locals')
1352
1353def getargvalues(frame):
1354 """Get information about arguments passed into a particular frame.
1355
1356 A tuple of four things is returned: (args, varargs, varkw, locals).
1357 'args' is a list of the argument names.
1358 'varargs' and 'varkw' are the names of the * and ** arguments or None.
1359 'locals' is the locals dictionary of the given frame."""
1360 args, varargs, varkw = getargs(frame.f_code)
1361 return ArgInfo(args, varargs, varkw, frame.f_locals)
1362
1363def formatannotation(annotation, base_module=None, *, quote_annotation_strings=True):
1364 if not quote_annotation_strings and isinstance(annotation, str):

Callers

nothing calls this directly

Calls 1

getargsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…