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:729–732 ·
view source on GitHub ↗
(self, node)
Source
from the content-addressed store, hash-verified
727
728
# For Python 3.8+
729
def
visit_Constant(self, node):
730
if
isinstance(node.value, int):
731
return
self.visit_Num(node)
732
return
node
733
734
735
class
TestAstTransform2(unittest.TestCase):
Callers
nothing calls this directly
Calls
1
visit_Num
Method · 0.95
Tested by
no test coverage detected