+ 1

Is possible add C modules in Python?

For example, consider I have created a C module and would like to import it in a Python code. It's possible? And using the common way (say, from c_name_module import c_functions)? Besides, if is possible, may I import modules of another languages? Thank you!!

30th Jan 2019, 9:36 AM
Gabriel Felix dos Santos
Gabriel Felix dos Santos - avatar
3 Respostas
+ 10
https://docs.python.org/3/extending/
30th Jan 2019, 11:13 AM
Mert Yazıcı
Mert Yazıcı - avatar
+ 2
Because many Python packages are mostly written in C (Such as Pygame and NumPy), I think it should be possible.
30th Jan 2019, 10:12 AM
Seb TheS
Seb TheS - avatar
0
Thank you ✌✌
30th Jan 2019, 2:22 PM
Gabriel Felix dos Santos
Gabriel Felix dos Santos - avatar