Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ visit_Constant
Method
visit_Constant
IPython/core/tests/test_interactiveshell.py:628–631 ·
view source on GitHub ↗
(self, node)
Source
from the content-addressed store, hash-verified
626
627
# for python 3.8+
628
def
visit_Constant(self, node):
629
if
isinstance(node.value, int):
630
return
self.visit_Num(node)
631
return
node
632
633
class
TestAstTransform(unittest.TestCase):
634
def
setUp(self):
Callers
nothing calls this directly
Calls
1
visit_Num
Method · 0.95
Tested by
no test coverage detected