0

Considering that the main Python implementation CPython written in C, and libraries exist that can convert Python code to C, would it be possible to run compiled Python bytecode in C or C++?

1

1 Answer 1

2

First, you cannot run anything in C, C is a programming language. You can embed python in your C program (see Documentation), because python can be compiled as library. But Python is not only the pyc-File, but consists of many modules, that make python as powerful as it is.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.