collect_python.walk_for_python_blocks
convert.collect_python.walk_for_python_blocks(src_bytes, node, blocks)Recursively search for fenced Python code blocks.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| src_bytes | bytes | UTF-8 encoded document source. | required |
| node | Node | Current node in the Tree-sitter AST. | required |
| blocks | list | Mutable list that is populated with block metadata dictionaries. | required |