[Python-Dev] Re: Extension modules, Threading, and the GIL

David Abrahams dave@boost-consulting.com
Fri, 10 Jan 2003 11:46:34 -0500


"Mark Hammond" <mhammond@skippinet.com.au> writes:

>> >> Then of course you know more than Tim would grant you: you
>> >> do have an
>> >> interpreter state, and hence you can infer that Python has been
>> >> initialized. So I infer that your requirements are different
>> >> from Tim's.
>
>> > Sheesh - lucky this is mildly entertaining <wink>.  You are free to
>> > infer what you like, but I believe it is clear and would prefer to
>> > see a single other person with a problem rather than continue
>> > pointless semantic games.
>
>> In this instance, it looks to me like Martin makes a good point.  If
>> I'm missing something, I'd appreciate an explanation.
>
> There was no requirement that identical code be used in all cases.  Checking
> if Python is initialized is currently trivial, and requires no special
> inference skills.  It is clear that some consideration will need to be given
> to the PyInterpreterState used for all this, but that is certainly
> tractable - every single person who has spoken up with this requirement to
> date has indicated that their application does not need multiple interpreter
> states - so explicitly ignoring that case seems fine.

I understand now, thanks.
-- 
                       David Abrahams
   dave@boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution