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

Function convert

Lib/inspect.py:1399–1401  ·  view source on GitHub ↗
(name, locals=locals,
                formatarg=formatarg, formatvalue=formatvalue)

Source from the content-addressed store, hash-verified

1397 that are called to turn names and values into strings. The ninth
1398 argument is an optional function to format the sequence of arguments."""
1399 def convert(name, locals=locals,
1400 formatarg=formatarg, formatvalue=formatvalue):
1401 return formatarg(name) + formatvalue(locals[name])
1402 specs = []
1403 for i in range(len(args)):
1404 specs.append(convert(args[i]))

Callers 2

formatargvaluesFunction · 0.70
_f_specialMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…