original_docstring: Start a new interface file
  
          - genOpts - GeneratorOptions controlling what's generated and how
docstring: Start a new interface file
  genOpts - GeneratorOptions controlling what's generated and how
docstring_tokens: Start a new interface file genOpts - GeneratorOptions controlling what ' s generated and how
code: def beginFile(self, genOpts):
          """Start a new interface file
  
          - genOpts - GeneratorOptions controlling what's generated and how"""
          self.genOpts = genOpts
          self.should_insert_may_alias_macro = \
              self.genOpts.conventions.should_insert_may_alias_macro(self.genOpts)
  
          # Try to import the API dictionary, api.py, if it exists. Nothing in
          # api.py cannot be extracted directly from the XML, and in the
          # future we should do that.
          if self.genOpts.genpath is not None:
              try:
                  sys.path.insert(0, self.genOpts.genpath)
                  import api
                  self.apidict = api
              except ImportError:
                  self.apidict = None
  
          self.conventions = genOpts.conventions
  
          # Open a temporary file for accumulating output.
          if self.genOpts.filename is not None:
              self.outFile = tempfile.NamedTemporaryFile(mode='w', encoding='utf-8', newline='\n', delete=False)
          else:
              self.outFile = sys.stdout
code_tokens: def beginFile ( self , genOpts ) : self . genOpts = genOpts self . should_insert_may_alias_macro = self . genOpts . conventions . should_insert_may_alias_macro ( self . genOpts ) if self . genOpts . genpath is not None : try : sys . path . insert ( 0 , self . genOpts . genpath ) import api self . apidict = api except ImportError : self . apidict = None self . conventions = genOpts . conventions if self . genOpts . filename is not None : self . outFile = tempfile . NamedTemporaryFile ( mode = 'w' , encoding = 'utf-8' , newline = '\n' , delete = False ) else : self . outFile = sys . stdout
short_docstring: Start a new interface file
   genOpts - GeneratorOptions controlling what's generated and how
short_docstring_tokens: Start a new interface file genOpts - GeneratorOptions controlling what ' s generated and how
comment: """Start a new interface file
  
          - genOpts - GeneratorOptions controlling what's generated and how"""$SEP$# Try to import the API dictionary, api.py, if it exists. Nothing in$SEP$# api.py cannot be extracted directly from the XML, and in the$SEP$# future we should do that.$SEP$# Open a temporary file for accumulating output.