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

Method reset_compiler_flags

IPython/core/compilerop.py:103–107  ·  view source on GitHub ↗

Reset compiler flags to default state.

(self)

Source from the content-addressed store, hash-verified

101 return compile(source, filename, symbol, self.flags | PyCF_ONLY_AST, 1)
102
103 def reset_compiler_flags(self):
104 """Reset compiler flags to default state."""
105 # This value is copied from codeop.Compile.__init__, so if that ever
106 # changes, it will need to be updated.
107 self.flags = codeop.PyCF_DONT_IMPLY_DEDENT
108
109 @property
110 def compiler_flags(self):

Callers 1

test_future_flagsMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_future_flagsMethod · 0.64