feat(python): decode CPython 3.14 and 3.15 pyc code objects

Decode marshal slice constants from magic 3608 onward and pin the 3.11 code
layout and inline-cache tables for the 3.14 and 3.15 magics.

Refs #8206
This commit is contained in:
Abhishek Sharma
2026-11-14 11:08:33 +00:00
committed by Ysopwnable
parent 5451d3cb2d
commit 1d08253ff2
14 changed files with 471 additions and 69 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export const registerPythonPycCommands = (
): void => {
cli.command(CLI_COMMANDS.inspectPythonPyc, {
description:
"Inspect a supported CPython 3.7–3.13 pyc header and marshal code objects without executing bytecode",
"Inspect a supported CPython 3.7–3.15 pyc header and marshal code objects without executing bytecode",
args: z.object({
path: localPathStringSchema.describe("Local CPython .pyc file"),
}),