[Python-Dev] working with Python threads from C extension module? (original) (raw)
Guido van Rossum guido at python.org
Sat Sep 8 01:46:13 CEST 2007
- Previous message: [Python-Dev] working with Python threads from C extension module?
- Next message: [Python-Dev] working with Python threads from C extension module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Well, one shouldn't be bothering with threads unless the user intends to create threads. So I think it's not kosher. Once threads are initialized, everything runs a tad slower because the GIL manipulations actually cost time (even if there are no other threads).
On 9/7/07, Bill Janssen <janssen at parc.com> wrote:
> So what happens when someone loads the ssl module, initializes the > threads, and tries to use SSL? It's going to start failing again. I
Which turns out to be exactly what testssl.py does. I'm tempted to have the ssl module call PyEvalInitThreads(). Would that be kosher?
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] working with Python threads from C extension module?
- Next message: [Python-Dev] working with Python threads from C extension module?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]