Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ example1.py
File
example1.py
src/9/parsing_and_analyzing_python_source/example1.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
ast
2
3
class
CodeAnalyzer(ast.NodeVisitor):
4
def
__init__(self):
Callers
nothing calls this directly
Calls
3
CodeAnalyzer
Class · 0.85
parse
Method · 0.80
visit
Method · 0.45
Tested by
no test coverage detected