On Wed, Oct 12, 2016 at 8:32 PM, meInvent bbird <jobmatt...@gmail.com> wrote:
> class ChangeAddtoMultiply(ast.NodeTransformer):
>     """Wraps all integers in a call to Integer()"""
>     def visit_Num(self, node):
>         if isinstance(node.n, int):
>             return ast.Call(func=ast.Name(id='Add', ctx=ast.Load()),
>                             args=[node], keywords=[])
>         return node
>
>

Your class name, docstring, and functionality are all different, and
you have given no explanation of what you want us to do. I can't read
minds quite that well.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to