Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ last_item
Method
last_item
Lib/test/test_dis.py:2243–2244 ·
view source on GitHub ↗
(iterable)
Source
from the content-addressed store, hash-verified
2241
self.assertEqual(instruction.offset, instruction.start_offset)
2242
2243
def
last_item(iterable):
2244
return
functools.reduce(
lambda
a, b : b, iterable)
2245
2246
code = bytes([
2247
opcode.opmap[
"LOAD_FAST"
], 0x00,
Callers
nothing calls this directly
Calls
1
reduce
Method · 0.45
Tested by
no test coverage detected