Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions doc/source/user/c-info.python-as-glue.rst
Original file line number Diff line number Diff line change
Expand Up @@ -825,19 +825,13 @@ Conclusion
Using ctypes is a powerful way to connect Python with arbitrary
C-code. Its advantages for extending Python include

- clean separation of C code from Python code

- no need to learn a new syntax except Python and C

- allows reuse of C code

- functionality in shared libraries written for other purposes can be
obtained with a simple Python wrapper and search for the library.


- easy integration with NumPy through the ctypes attribute

- full argument checking with the ndpointer class factory
* clean separation of C code from Python code
* no need to learn a new syntax except Python and C
* allows reuse of C code
* functionality in shared libraries written for other purposes can be
obtained with a simple Python wrapper and search for the library.
* easy integration with NumPy through the ctypes attribute
* full argument checking with the ndpointer class factory

Its disadvantages include

Expand Down