Tutoriel d'introduction à Cython
Chers membres du club,
J'ai le plaisir de vous présenter une série de deux tutoriels sur Cython que vous propose Gabor Laszlo Hajba. Cette première partie est une introduction à l'utilisation de Cython.
Citation:
Dans ce tutoriel, je vous donnerai une brève introduction concernant Cython, une bibliothèque Python qui permet une interaction avec du code écrit en C. Et peu importe que vous utilisiez du code C depuis Python ou que vous appeliez du code Python depuis le C.
Cython est une bibliothèque, ce n’est pas la même que CPython, l’implémentation de référence du langage de programmation Python. Elle convertit du code Python en C qui peut être joint à l’exécution du runtime CPython.
Bonne lecture ;).
:fleche: Retrouvez les meilleurs cours et tutoriels pour apprendre Python
Tutoriel pour apprendre les notions avancées en Cython
Chers membres du club,
J'ai le plaisir de vous présenter la deuxième partie de ce tutoriel sur Cython. Cette deuxième partie se charge de vous apprendre à utiliser certaines notions avancées de Cython.
« Ce tutoriel est la suite d'un premier sujet intitulé « Introduction au Cython » disponible ici. L'objectif est de montrer quelques utilisations de l'appel de code Python au sein d'un code écrit en C. Ce tutoriel présente de façon plus détaillé certaines fonctionnalités avancées.
Nous allons écrire un exemple simple incorporant du code Python dans du code C et créant une application exécutable pouvant être lancée en incluant l'interpréteur Python, de sorte qu'il ne soit pas nécessaire d'appeler Python.
L'installation de Python 3 et d'un compilateur C seront nécessaires pour compiler le code C en exécutable, comme indiqué précédemment. Sans compilateur C, vous ne pourrez pas essayer les exemples présentés dans ce document. »
Bonne lecture.
:fleche: Retrouvez les meilleurs cours et tutoriels pour apprendre Python
:fleche: Retrouvez les meilleurs cours pour apprendre le langage C