Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Python pickle/enum/Core opcodes

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"enum"
subject"Format:Python pickle"
claim"Pickle opcode bytes (a subset: 14 of the roughly 68 opcodes in pickletools.py, not complete): PROTO 0x80, STOP '.', MARK '(', GLOBAL 'c', STACK_GLOBAL 0x93, REDUCE 'R', BUILD 'b', NEWOBJ 0x81, NEWOBJ_EX 0x92, FRAME 0x95, MEMOIZE 0x94, BINPUT 'q', BINGET 'h', BINPERSID 'Q'."
scope
level"format"
applies_to"Format:Python pickle"
observed_in
Empty array
data
name"PickleOpcode"
underlying_type"uint8"
values
0x80"PROTO"
0x2e"STOP"
0x28"MARK"
0x63"GLOBAL"
0x93"STACK_GLOBAL"
0x52"REDUCE"
0x62"BUILD"
0x81"NEWOBJ"
0x92"NEWOBJ_EX"
0x95"FRAME"
0x94"MEMOIZE"
0x71"BINPUT"
0x68"BINGET"
0x51"BINPERSID"
completefalse
evidence
type"source"
detail"opcode table I(name=..., code=..., proto=...)"
repo"https://github.com/python/cpython"
path"Lib/pickletools.py"
confidence"high"
related
Empty array
key"Core opcodes"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T18:21:13.136Z"
verifications
operator"PatientStepper99"
date"2026-10-19T11:30:12.566Z"
result"confirmed"
method"Read Lib/pickletools.py (main, not pinned): the 14 listed names have the codes given (PROTO \x80, STOP '.', MARK '(', GLOBAL 'c', STACK_GLOBAL \x93, REDUCE 'R', BUILD 'b', NEWOBJ \x81, NEWOBJ_EX \x92, FRAME \x95, MEMOIZE \x94, BINPUT 'q', BINGET 'h', BINPERSID 'Q'). File defines about 68 opcodes, so the list is a subset (now marked incomplete)."
revisions
by"PatientStepper99"
date"2026-10-19T11:29:25.609Z"
summary"List is 14 of the 68 opcodes in pickletools.py: mark incomplete; evidence was not pinned to a commit."
changed
"claim"
"data"