MCPcopy Index your code
hub / github.com/python/mypy / keep_alive

Method keep_alive

mypyc/irbuild/ll_builder.py:316–317  ·  view source on GitHub ↗
(self, values: list[Value], line: int, *, steal: bool = False)

Source from the content-addressed store, hash-verified

314 self.activate_block(block)
315
316 def keep_alive(self, values: list[Value], line: int, *, steal: bool = False) -> None:
317 self.add(KeepAlive(values, line, steal=steal))
318
319 def load_mem(self, ptr: Value, value_type: RType, *, borrow: bool = False) -> Value:
320 return self.add(LoadMem(value_type, ptr, borrow=borrow))

Callers 10

set_struct_fieldMethod · 0.95
vec_create_initializedFunction · 0.80
vec_create_from_valuesFunction · 0.80
vec_set_itemFunction · 0.80
vec_init_item_unsafeFunction · 0.80
vec_appendFunction · 0.80
vec_popFunction · 0.80
vec_removeFunction · 0.80
vec_containsFunction · 0.80

Calls 2

addMethod · 0.95
KeepAliveClass · 0.90

Tested by

no test coverage detected