Skip to content

Commit

Permalink
update readme.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh0719 committed Apr 12, 2024
1 parent 3a74873 commit ced3028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ View the `Github repository <https://github.com/saurabh0719/constable>`__ and th


How does it work?
------------------
~~~~~~~~~~~~~~~~~~

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`.

Expand Down

0 comments on commit ced3028

Please sign in to comment.