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

Function list_items

mypyc/lower/list_ops.py:43–45  ·  view source on GitHub ↗
(builder: LowLevelIRBuilder, args: list[Value], line: int)

Source from the content-addressed store, hash-verified

41
42@lower_primitive_op("list_items")
43def list_items(builder: LowLevelIRBuilder, args: list[Value], line: int) -> Value:
44 ob_item_ptr = builder.add(GetElementPtr(args[0], PyListObject, "ob_item", line))
45 return builder.load_mem(ob_item_ptr, pointer_rprimitive)
46
47
48def list_item_ptr(builder: LowLevelIRBuilder, obj: Value, index: Value, line: int) -> Value:

Callers 1

list_item_ptrFunction · 0.85

Calls 3

GetElementPtrClass · 0.90
load_memMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…