Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there abstract syntax tree (AST) in python extension module (files with suffix .so)?

I can check AST in python file:

python3 -m ast some_file.py

But, when I compile it with nuitka:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

nuitka3 --module some_file.py

I get some_file.so extension module and when I run

python3 -m ast some_file.so

I get error.

So, question my is:

is there abstract syntax tree (AST) in python extension module?

>Solution :

A .so is almost certainly a Linux or MacOSX Shared Object (as the tag indicates). It almost certainly does not contain Python byte code, the usual content is raw binary instructions in the format that your CPU understands.

Viewing the symbols in a .so file

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading