classification
Title: Sub-interpreters : Confusing docs about state after calling Py_NewInterpreter()
Type: Stage:
Components: Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.snow, nanjekyejoannah
Priority: normal Keywords:

Created on 2019-08-19 19:05 by nanjekyejoannah, last changed 2019-09-11 13:42 by eric.snow.

Messages (1)
msg349964 - (view) Author: Joannah Nanjekye (nanjekyejoannah) * (Python triager) Date: 2019-08-19 19:05
In the documentation for Py_NewInterpreter(): It is said that :

The return value points to the first thread state created in the new sub-interpreter.  This thread state is made in the current thread state.

I think changing :

This thread state is made in the current thread state.

To:

This thread state is made the current thread state.

Sounds good. Since a call such as:

substate = Py_NewInterpreter()

makes *substate* the current state. no?

The *in* takes me in a different direction of thought.
History
Date User Action Args
2019-09-11 13:42:21eric.snowsetnosy: + eric.snow
2019-08-19 19:05:22nanjekyejoannahcreate