Using C from Python | Ctypes

preview_player
Показать описание
We look an an article with the minimum required code to write a function in C and call it with Python using the Ctypes module.

If you want to make your code VERY FAST and on a larger project this could be very useful.
If you want to learn C anyway then it will help you with languages such as JavaScript or C++ and enhance your understanding of compiled vs interpreted languages.

-------------------------------------------------------------------------
- chapters -
-------------------------------------------------------------------------
0:00 Intro
06:00 the C code
14:27 compile the .SO shared object
24:27 test Python code
33:51 every programming tutorial
------------------------------------------------------------------------


Proxies
=================================================
If you need a good, easy to use proxy, I was recommended this one, and having used ScraperAPI for a while I can vouch for them. If you were going to sign up anyway, then maybe you would be kind enough to use the link and the coupon code below?

You can also do a full working trial first as well, (unlike some other companies). The trial doesn't ask for any payment details either so all good! 👍

◼️ Coupon Code: DRPI10
(You can also get started with 1000 free API calls. No credit card required.)

#c #coding #python
Рекомендации по теме
Комментарии
Автор

0:00 Intro
06:00 the C code
14:27 compile the .SO shared object
24:27 test Python code
33:51 every programming tutorial

python
Автор

Finally figured it out after this video thanks for that!

charimuvilla
Автор

Thank you very much. So I am confused how did you use ctypes.c_int * num_numbers when num_numbers is a number not a variable name please?

mohammadyahya