Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 413 Bytes

varnames.rst

File metadata and controls

33 lines (27 loc) · 413 Bytes
co_varnames

Description

Returns a tuple containing the names of the local variables (starting with the argument names).

Syntax

code.co_varnames

Return Value

#TODO

Time Complexity

#TODO

Example

>>> def foo(a, b=10): ... c = 10 ... return a+b+c ... >>> c = foo.func_code >>> c.co_varnames ('a', 'b', 'c')

See Also

#TODO