MCPcopy Index your code
hub / github.com/RustPython/RustPython / getargvalues

Function getargvalues

Lib/inspect.py:1329–1337  ·  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

1327ArgInfo = namedtuple('ArgInfo', 'args varargs keywords locals')
1328
1329def getargvalues(frame):
1330 """Get information about arguments passed into a particular frame.
1331
1332 A tuple of four things is returned: (args, varargs, varkw, locals).
1333 'args' is a list of the argument names.
1334 'varargs' and 'varkw' are the names of the * and ** arguments or None.
1335 'locals' is the locals dictionary of the given frame."""
1336 args, varargs, varkw = getargs(frame.f_code)
1337 return ArgInfo(args, varargs, varkw, frame.f_locals)
1338
1339def formatannotation(annotation, base_module=None, *, quote_annotation_strings=True):
1340 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