Add simple_const tests for Python 3.8-3.11, and handle Python 3.11 RESUME opcode

This commit is contained in:
Michael Hansen
2023-01-24 10:25:10 -08:00
parent 60e4eb6316
commit a6de2209fc
6 changed files with 8 additions and 5 deletions

View File

@@ -2516,6 +2516,9 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
that during disassembly/decompilation, we can just treat these
as no-ops. */
break;
case Pyc::RESUME_A:
/* Treated as no-op for decompyle purposes */
break;
default:
fprintf(stderr, "Unsupported opcode: %s\n", Pyc::OpcodeName(opcode & 0xFF));
cleanBuild = false;

View File

@@ -30,11 +30,11 @@ PYVERS = {
'3.4': '3.4.10',
'3.5': '3.5.10',
'3.6': '3.6.15',
'3.7': '3.7.15',
'3.8': '3.8.15',
'3.9': '3.9.15',
'3.10': '3.10.8',
'3.11': '3.11.0',
'3.7': '3.7.16',
'3.8': '3.8.16',
'3.9': '3.9.16',
'3.10': '3.10.9',
'3.11': '3.11.1',
}
OLD_PYTHONS = ('1.0', '1.1', '1.2', '1.3', '1.4', '1.5')

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.