Re: Calling into Python from a C thread

2009-02-10 Thread Philip Semanchuk
On Feb 9, 2009, at 3:59 PM, Christian Heimes wrote: Philip Semanchuk wrote: Yes, that's accurate except for the word forgot. To forget something one must first know it. =) I found the threading API documentation difficult to follow, but I suppose that what I'm doing is a little unusual so

Re: Calling into Python from a C thread

2009-02-09 Thread Aahz
[posted e-mailed] In article mailman.8619.1233597806.3487.python-l...@python.org, Philip Semanchuk phi...@semanchuk.com wrote: I'm trying call Python from inside of a C thread that's running in a Python extension I've written and I am not having much luck. My C thread function consists of

Re: Calling into Python from a C thread

2009-02-09 Thread Philip Semanchuk
On Feb 9, 2009, at 12:02 PM, Aahz wrote: [posted e-mailed] In article mailman.8619.1233597806.3487.python-l...@python.org, Philip Semanchuk phi...@semanchuk.com wrote: I'm trying call Python from inside of a C thread that's running in a Python extension I've written and I am not having

Re: Calling into Python from a C thread

2009-02-09 Thread Christian Heimes
Philip Semanchuk wrote: I didn't know there *was* such a thing. Thanks for the tip! For those who might be interested, the list is here: http://mail.python.org/mailman/listinfo/capi-sig FYI, I got my code working and it is in the latest release of posix_ipc:

Re: Calling into Python from a C thread

2009-02-09 Thread Philip Semanchuk
On Feb 9, 2009, at 2:35 PM, Christian Heimes wrote: Philip Semanchuk wrote: I didn't know there *was* such a thing. Thanks for the tip! For those who might be interested, the list is here: http://mail.python.org/mailman/listinfo/capi-sig FYI, I got my code working and it is in the latest

Re: Calling into Python from a C thread

2009-02-09 Thread Christian Heimes
Philip Semanchuk wrote: Yes, that's accurate except for the word forgot. To forget something one must first know it. =) I found the threading API documentation difficult to follow, but I suppose that what I'm doing is a little unusual so if it is not well-documented territory, that's what I

Calling into Python from a C thread

2009-02-02 Thread Philip Semanchuk
Hi all, I'm trying call Python from inside of a C thread that's running in a Python extension I've written and I am not having much luck. My C thread function consists of simply this, and I get a segmentation fault from Python: void start_routine(union sigval foo) { PyGILState_STATE