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

Function getargvalues

tools/python-3.11.9-amd64/Lib/inspect.py:1427–1435  ·  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 o

(frame)

Source from the content-addressed store, hash-verified

1425ArgInfo = namedtuple('ArgInfo', 'args varargs keywords locals')
1426
1427def getargvalues(frame):
1428 """Get information about arguments passed into a particular frame.
1429
1430 A tuple of four things is returned: (args, varargs, varkw, locals).
1431 'args' is a list of the argument names.
1432 'varargs' and 'varkw' are the names of the * and ** arguments or None.
1433 'locals' is the locals dictionary of the given frame."""
1434 args, varargs, varkw = getargs(frame.f_code)
1435 return ArgInfo(args, varargs, varkw, frame.f_locals)
1436
1437def formatannotation(annotation, base_module=None):
1438 if getattr(annotation, '__module__', None) == 'typing':

Callers

nothing calls this directly

Calls 1

getargsFunction · 0.85

Tested by

no test coverage detected