8000 elaborate Cython rationale · mscherer/pythoncapi@c357f0f · GitHub
[go: up one dir, main page]

Skip to content

Commit c357f0f

Browse files
committed
elaborate Cython rationale
1 parent 21f68db commit c357f0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/cython.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ Cython
77
An alternative to using the C API directly is to rewrite a C extension using
88
`Cython <http://cython.org/>`__ which generates C code using the C API.
99

10+
Cython allows you to wrap existing C code, but if you want to use Python
11+
objects in C or details which are not exposed at 6753 the Python level, you still
12+
need the Python C API to work with those.
13+
14+
Whether to use Cython or not depends on your use case. It's not
15+
always the obvious choice (otherwise, those other tools would not
16+
exist).
17+
1018
XXX write a better rationale why migrating to Cython!
1119

1220
Questions:

0 commit comments

Comments
 (0)
0