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

Method visit_For

IPython/core/magics/execution.py:141–145  ·  view source on GitHub ↗

Fill in the statement to be timed

(self, node)

Source from the content-addressed store, hash-verified

139 return node
140
141 def visit_For(self, node):
142 "Fill in the statement to be timed"
143 if getattr(getattr(node.body[0], 'value', None), 'id', None) == 'stmt':
144 node.body = self.ast_stmt.body
145 return node
146
147
148class Timer(timeit.Timer):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected