Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #109304 > unrolled thread

Re: Manipulate GIL to have Python thread work with pthread native ones

Started bydieter <dieter@handshake.de>
First post2016-06-01 09:50 +0200
Last post2016-06-01 09:50 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Manipulate GIL to have Python thread work with pthread native ones dieter <dieter@handshake.de> - 2016-06-01 09:50 +0200

#109304 — Re: Manipulate GIL to have Python thread work with pthread native ones

Fromdieter <dieter@handshake.de>
Date2016-06-01 09:50 +0200
SubjectRe: Manipulate GIL to have Python thread work with pthread native ones
Message-ID<mailman.65.1464767469.1839.python-list@python.org>
qshhnkf@alumni.sjtu.edu.cn writes:
... Python/C++ integration ...

When I learn about a task to integrate Python with C or C++,
I first think of "cython". "cython" facilitates those integrations.
Especially, it has annotations to control the GIL.

I have used "cython" for the implementation of a Python binding
to the XML security library. The result ist "dm.xmlsec.binding".
There, I use both ("cython") annotations to release the GIL when
passing over control from Python to C; as well as ("cython")
features to implement a callback from C to Python.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web