We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it support reading .pyc files? Get all bytecode instructions in .pyc by similar to Bytecode.from_code(code_obj)
The text was updated successfully, but these errors were encountered:
No currently bytecode only operate on code objects.
I never tried to open a pyc and unmarshall it, but you could try that and grab the module code object to use with bytecode.
Sorry, something went wrong.
Would something like this work for you?
from pkgutil import read_code with open("path/to.pyc", "rb") as f bc = Bytecode.from_code(read_code(f))
Thanks for your answers, it's very helpful for me
No branches or pull requests
Does it support reading .pyc files? Get all bytecode instructions in .pyc by similar to Bytecode.from_code(code_obj)
The text was updated successfully, but these errors were encountered: