Example #1
0
 def __init__(self):
     self.argcount = 0
     self.kwonlyargcount = 0
     self.first_lineno = 1
     self.name = '<module>'
     self.filename = '<string>'
     self.docstring = UNSET
     self.cellvars = []
     # we cannot recreate freevars from instructions because of super()
     # special-case
     self.freevars = []
     self._flags = _bytecode.CompilerFlags(0)
Example #2
0
 def flags(self, value):
     if not isinstance(value, _bytecode.CompilerFlags):
         value = _bytecode.CompilerFlags(value)
     self._flags = value