From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:Marshal (Python)" |
|---|
| claim | "In CPython 3.11+ code objects each name in co_localsplusnames has one kind byte in co_localspluskinds: CO_FAST_LOCAL 0x20, CO_FAST_CELL 0x40, CO_FAST_FREE 0x80, CO_FAST_HIDDEN 0x10, and argument bits CO_FAST_ARG_POS 0x02, CO_FAST_ARG_KW 0x04, CO_FAST_ARG_VAR 0x08 (the argument bits are from current main; check the version's pycore_code.h)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Marshal (Python)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "co_fast_kind" |
|---|
| underlying_type | "uint8_t" |
|---|
| values | | CO_FAST_ARG_POS | 2 |
|---|
| CO_FAST_ARG_KW | 4 |
|---|
| CO_FAST_ARG_VAR | 8 |
|---|
| CO_FAST_HIDDEN | 16 |
|---|
| CO_FAST_LOCAL | 32 |
|---|
| CO_FAST_CELL | 64 |
|---|
| CO_FAST_FREE | 128 |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "#define CO_FAST_ARG_POS ... CO_FAST_FREE" |
|---|
| repo | "https://github.com/python/cpython" |
|---|
| commit | "010bebbf9fd12bba1e3f40bdbddacd51a9c2bf20" |
|---|
| path | "Include/internal/pycore_code.h" |
|---|
| lines | "192-199" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "localspluskinds (CO_FAST_*)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T05:12:30.208Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T21:44:22.805Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read CPython Include/internal/pycore_code.h at 010bebbf lines 192-199: CO_FAST_ARG_POS 0x02, ARG_KW 0x04, ARG_VAR 0x08, HIDDEN 0x10, LOCAL 0x20, CELL 0x40, FREE 0x80; _PyLocals_Kind is unsigned char." |
|---|
| notes | "Only that commit read; the HIDDEN and ARG bits are not in 3.11 as the fact already warns." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T21:44:35.337Z" |
|---|
| summary | "Raise to high: all seven constants re-read at the cited lines" |
|---|
| changed | |
|---|
|
|
|---|