MCPcopy Index your code
hub / github.com/ipython/ipython / extra_flags

Method extra_flags

IPython/core/compilerop.py:181–192  ·  view source on GitHub ↗
(self, flags)

Source from the content-addressed store, hash-verified

179
180 @contextmanager
181 def extra_flags(self, flags):
182 ## bits that we'll set to 1
183 turn_on_bits = ~self.flags & flags
184
185
186 self.flags = self.flags | flags
187 try:
188 yield
189 finally:
190 # turn off only the bits we turned on so that something like
191 # __future__ that set flags stays.
192 self.flags &= ~turn_on_bits

Callers 1

run_ast_nodesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected