mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00

This is partly a cleanup of the code. It also is preparation for getting the variables from the source (cross-platform) rather than from the symbols. The change only touches the tool (and its tests).
11 lines
325 B
Python
11 lines
325 B
Python
|
|
def basic(variables, *,
|
|
_print=print):
|
|
"""Print each row simply."""
|
|
for var in variables:
|
|
if var.funcname:
|
|
line = f'{var.filename}:{var.funcname}():{var.name}'
|
|
else:
|
|
line = f'{var.filename}:{var.name}'
|
|
line = f'{line:<64} {var.vartype}'
|
|
_print(line)
|