Add basic bytecode and disassembly support for Python 3.12

This commit is contained in:
Michael Hansen
2023-11-09 11:11:37 -08:00
parent b32f231e33
commit 9b384ad1fa
12 changed files with 456 additions and 189 deletions

View File

@@ -130,7 +130,7 @@ void PycString::print(std::ostream &pyc_output, PycModule* mod, bool triple,
// Unicode stored as UTF-8... Let the stream interpret it
pyc_output << ch;
} else {
formatted_print(pyc_output, "\\x%x", (ch & 0xFF));
formatted_print(pyc_output, "\\x%02x", (ch & 0xFF));
}
} else {
if (!useQuotes && ch == '\'')