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

Method needs_defining

Tools/cases_generator/stack.py:450–456  ·  view source on GitHub ↗
(var: Local)

Source from the content-addressed store, hash-verified

448
449 @staticmethod
450 def needs_defining(var: Local) -> bool:
451 return (
452 not var.item.peek and
453 not var.in_local and
454 not var.is_array() and
455 var.name != "unused"
456 )
457
458 @staticmethod
459 def is_live(var: Local) -> bool:

Callers 2

_push_defined_outputsMethod · 0.95
push_outputsMethod · 0.95

Calls 1

is_arrayMethod · 0.45

Tested by

no test coverage detected