IBM / pyflowgraph

Flow graphs for Python
Apache License 2.0
25 stars 8 forks source link

Cannot trace mathematical operators #12

Closed epatters closed 6 years ago

epatters commented 6 years ago

The tracer does not pick up mathematical operators, like + and *, because they are not reported by sys.settrace or sys.setprofile. Closely related to #10.

epatters commented 6 years ago

Once #13 is implemented, this issue can be fixed by rewriting UnaryOp and BinOp AST nodes as calls to the corresponding functions in the operator module. Likewise for attribute getters and setters and indexing.