[Python-Dev] threading (GilState) question

Gregory P. Smith greg at electricrain.com
Fri Apr 8 23:42:18 CEST 2005


> > Under "Limitations and Exclusions" it specifically disowns
> > responsibility for worrying about whether Py_Initialize() and
> > PyEval_InitThreads() have been called:
> >
> [snip quote]
> 
> This suggests that I should call PyEval_InitThreads() in
> initreadline(), which seems daft.

fwiw, Modules/_bsddb.c does exactly that.

-g



More information about the Python-Dev mailing list