Expand description
Python (CPython / PyPy) symbol canonicalization.
Raw forms seen in the wild:
- cProfile pstats:
/path/to/app.py:42(my_func)→ fqn=app.my_func, file=/path/to/app.py, line=42 - py-spy / austin:
my_func (app.py)→ fqn=app.my_func, file=app.py - dotted already:
app.submodule.my_func→ fqn as-is - Built-ins:
<built-in method builtins.print>→ fqn=builtins.print
Lambdas and comprehensions — <lambda>, <listcomp>, <genexpr> —
get is_synthetic = true because their line-number-derived identity
is not stable across edits.