Reputation: 109
I need to find magic bytes for Python version 3.7 I've tried here: https://shankaraman.wordpress.com/tag/how-to-fix-runtimeerror-bad-magic-number-in-pyc-file/ and here: https://programmer.group/record-the-decompilation-process-of-python-3.7-once.html#3magic_number_63 and also google it, but no luck so far, so
Upvotes: 1
Views: 669
Reputation: 280465
There's a constant for that in the standard library: importlib.util.MAGIC_NUMBER
represents the bytes for the .pyc
magic number for the current Python interpreter.
Upvotes: 1