Is it possible to mix c++ and python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 13

Is it possible to mix c++ and python?

23rd Mar 2018, 10:11 AM
Blah
6 Answers
0
what do you mean by "mix"?
23rd Mar 2018, 10:19 AM
Hetbo.net
Hetbo.net - avatar
0
You can execute C code with cffi (in the standard library, IIRC)
23rd Mar 2018, 10:29 AM
Amaras A
Amaras A - avatar
0
you can't use py code inside a cpp class or vice versa
23rd Mar 2018, 10:31 AM
Hetbo.net
Hetbo.net - avatar
0
A module that allows to execute C code. You can read the manual for further information, because I don't know anything about it, except that it can execute C code
23rd Mar 2018, 10:31 AM
Amaras A
Amaras A - avatar
0
welcome
23rd Mar 2018, 10:32 AM
Amaras A
Amaras A - avatar
0
Python is often used as a scripting language for C++. There’s a lot of libraries that can allow you to do this. But you will never be able to put Python code in a C++ class.
23rd Mar 2018, 11:08 AM
Ariela
Ariela - avatar