[Python-Dev] Find out whether PyEval_InitThreads has been called?

Michael Chermside mcherm at mcherm.com
Tue Aug 17 19:19:37 CEST 2004


> Why not go one step further and make all locking
> operations in python no-ops if PyEval_InitThreads has never been
> called?  Currently, we risk python crashing if we call such functions
> without calling PyEval_InitThreads.

+1. Seems like it can't possibly hurt, and as you say, it's trivial
to implement.

-- Michael Chermside



More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant