MCPcopy Create free account
hub / github.com/ipython/ipython / visit_Num

Method visit_Num

IPython/core/tests/test_interactiveshell.py:722–726  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

720
721 # for Python 3.7 and earlier
722 def visit_Num(self, node):
723 if isinstance(node.n, int):
724 return ast.Call(func=ast.Name(id='Integer', ctx=ast.Load()),
725 args=[node], keywords=[])
726 return node
727
728 # For Python 3.8+
729 def visit_Constant(self, node):

Callers 1

visit_ConstantMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected