[Patches] [ python-Patches-1031233 ] Clean up discussion of new C thread idiom

SourceForge.net noreply at sourceforge.net
Wed Jan 19 05:19:14 CET 2005


Patches item #1031233, was opened at 2004-09-20 10:14
Message generated for change (Comment added) made by fdrake
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1031233&group_id=5470

Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Greg Chapman (glchapman)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Clean up discussion of new C thread idiom

Initial Comment:
In init.tex, the code for the typical idiom for C
threads now uses the PyGILState functions.  However the
preceeding discussion still refers to the need to
acquire an interpreter state, etc.  Attached is a patch
which tries to clean this up a little.  I removed the
paragraph about interpreter states (which raises the
possibility of creating a new interpreter state) since
multiple interpreter states are, I believe,
incompatible (or at least untested) with PyGILState. 
It's possible that more of PEP 311 should be included
here, particularly the part about having to call
PyEval_InitThreads on the main thread before using any
of the thread APIs.


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2005-01-18 23:19

Message:
Logged In: YES 
user_id=3066

Committed as Doc/api/init.tex revisions 1.22 and 1.21.2.1.

----------------------------------------------------------------------

Comment By: Greg Chapman (glchapman)
Date: 2004-09-23 08:13

Message:
Logged In: YES 
user_id=86307

Changed my added text to refer to Py_NewInterpreter, rather
than PyInterpreterState_New.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1031233&group_id=5470


More information about the Patches mailing list