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

Method extra_flags

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

Source from the content-addressed store, hash-verified

137
138 @contextmanager
139 def extra_flags(self, flags):
140 ## bits that we'll set to 1
141 turn_on_bits = ~self.flags & flags
142
143
144 self.flags = self.flags | flags
145 try:
146 yield
147 finally:
148 # turn off only the bits we turned on so that something like
149 # __future__ that set flags stays.
150 self.flags &= ~turn_on_bits
151
152
153def check_linecache_ipython(*args):

Callers 1

run_ast_nodesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected