MCPcopy Index your code
hub / github.com/python/cpython / decref_inputs

Method decref_inputs

Tools/cases_generator/generators_common.py:303–323  ·  view source on GitHub ↗
(
        self,
        tkn: Token,
        tkn_iter: TokenIterator,
        uop: CodeSection,
        storage: Storage,
        inst: Instruction | None,
    )

Source from the content-addressed store, hash-verified

301 return False
302
303 def decref_inputs(
304 self,
305 tkn: Token,
306 tkn_iter: TokenIterator,
307 uop: CodeSection,
308 storage: Storage,
309 inst: Instruction | None,
310 ) -> bool:
311 next(tkn_iter)
312 next(tkn_iter)
313 next(tkn_iter)
314 self._print_storage("DECREF_INPUTS", storage)
315 try:
316 if not self.cannot_escape:
317 storage.close_inputs(self.out)
318 except StackError as ex:
319 raise analysis_error(ex.args[0], tkn)
320 except Exception as ex:
321 ex.args = (ex.args[0] + str(tkn),)
322 raise
323 return True
324
325 def kill_inputs(
326 self,

Callers

nothing calls this directly

Calls 4

_print_storageMethod · 0.95
analysis_errorFunction · 0.90
strFunction · 0.85
close_inputsMethod · 0.80

Tested by

no test coverage detected