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


Groups > comp.lang.python > #109304

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

From dieter <dieter@handshake.de>
Newsgroups comp.lang.python
Subject Re: Manipulate GIL to have Python thread work with pthread native ones
Date 2016-06-01 09:50 +0200
Message-ID <mailman.65.1464767469.1839.python-list@python.org> (permalink)
References <1727544946.3450439.1464671782195.JavaMail.zimbra@alumni.sjtu.edu.cn> <87y46pz6sf.fsf@handshake.de>

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web