Skip to content

Commit ced3028

Browse files
committed
update readme.rst
1 parent 3a74873 commit ced3028

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ View the `Github repository <https://github.com/saurabh0719/constable>`__ and th
77

88

99
How does it work?
10-
------------------
10+
~~~~~~~~~~~~~~~~~~
1111

1212
The `constable.trace` decorator uses Python's Abstract Syntax Tree (AST) in much the same way we add `print`(s) to debug states. During runtime, it prepares and inserts `print` statements into the function's AST after every assignment operation (`ast.Assign`, `ast.AugAssign` and `ast.AnnAssign`), and then executes the modified code in a separate namespace with `exec`.
1313

0 commit comments

Comments
 (0)