Skip to content

mdledoux/python_c_extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python_c_extension

This is the example that I have done - it works for Python 3.x

advice about reworking for Python 3.x https://stackoverflow.com/questions/28305731/compiler-cant-find-py-initmodule-is-it-deprecated-and-if-so-what-should-i

ALSO:

https://docs.python.org/3/extending/extending.html

Python3 clarifications to deprecated functions:

https://stackoverflow.com/questions/43621948/c-python-module-import-error-undefined-symbol-py-initmodule3-py-initmodu/43622454

(THIS IS PRETTY MUCH THE GUIDE I ENDED UP FOLLOWING)

import helloworld
helloworld.helloworld()
helloworld.str_func()
helloworld.float_func()
helloworld.multiply_ints(3,5)

About

A demo of making Python bindings to C libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published