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

Class StackItem

Tools/cases_generator/analyzer.py:153–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152@dataclass
153class StackItem:
154 name: str
155 size: str
156 peek: bool = False
157 used: bool = False
158
159 def __str__(self) -> str:
160 size = f"[{self.size}]" if self.size else ""
161 return f"{self.name}{size} {self.peek}"
162
163 def is_array(self) -> bool:
164 return self.size != ""
165
166 def get_size(self) -> str:
167 return self.size if self.size else "1"
168
169
170@dataclass

Callers 5

test_effect_sizesMethod · 0.90
registerMethod · 0.90
cache_itemsMethod · 0.90
convert_stack_itemFunction · 0.85
expandFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_effect_sizesMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…