
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2019-03-01 16:36 byeric.snow, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 12238 | merged | nanjekyejoannah,2019-03-08 15:30 | |
| PR 12650 | merged | miss-islington,2019-04-01 15:09 | |
| Messages (8) | |||
|---|---|---|---|
| msg336929 -(view) | Author: Eric Snow (eric.snow)*![]() | Date: 2019-03-01 16:36 | |
PyInterpreterState_Main() is a function in the public C-API that returns a pointer to the main interpreter's state. The main interpreter is the first one created by the CPython runtime during startup (e.g. when the "python" command is run).Documentation for PyInterpreterState_Main() should be on the "Initialization, Finalization, and Threads" page of the C-API docs, probably in the "Sub-interpreter support" section. [1] It could also possibly go in the "Advanced Debugger Support" section. [2]FYI, I added PyInterpreterState_Main() at PyCon US 2017 (commitf5df46d701d29baf738365da6fcf1b8a3ceabb71) when I merged Nick Coghlan's internal implementation ofPEP 432. So it has been available since 3.7.[1]https://docs.python.org/3/c-api/init.html#sub-interpreter-support[2]https://docs.python.org/3/c-api/init.html#advanced-debugger-support | |||
| msg336996 -(view) | Author: Joannah Nanjekye (nanjekyejoannah)*![]() | Date: 2019-03-02 06:50 | |
@Mariatta do you want to keep this for the mentored sprint at PyCon? | |||
| msg337496 -(view) | Author: Joannah Nanjekye (nanjekyejoannah)*![]() | Date: 2019-03-08 15:43 | |
Since there was no response, I decided to open a PR for this. | |||
| msg339151 -(view) | Author: Eric Snow (eric.snow)*![]() | Date: 2019-03-29 21:20 | |
As I noted on the PR, this might be a good chance to make sure the C-API docs are clear about what the "main" interpreter is. | |||
| msg339209 -(view) | Author: Joannah Nanjekye (nanjekyejoannah)*![]() | Date: 2019-03-30 16:07 | |
I will work on this in a separate PR.I opened #issue36487 (https://bugs.python.org/issue36487) to track this. | |||
| msg339297 -(view) | Author: miss-islington (miss-islington) | Date: 2019-04-01 15:08 | |
New changeset8c61739defd88c7f79e86537886c33745843ce01 by Miss Islington (bot) (Joannah Nanjekye) in branch 'master':bpo-36157:Document PyInterpreterState_Main() (GH-12238)https://github.com/python/cpython/commit/8c61739defd88c7f79e86537886c33745843ce01 | |||
| msg339298 -(view) | Author: miss-islington (miss-islington) | Date: 2019-04-01 15:15 | |
New changeset35fc38e5e82d18ceec95af9af2103319497e2eaf by Miss Islington (bot) in branch '3.7':bpo-36157:Document PyInterpreterState_Main() (GH-12238)https://github.com/python/cpython/commit/35fc38e5e82d18ceec95af9af2103319497e2eaf | |||
| msg339299 -(view) | Author: Eric Snow (eric.snow)*![]() | Date: 2019-04-01 15:22 | |
Thanks for working on this, Joannah! :) | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:11 | admin | set | github: 80338 |
| 2019-04-01 15:22:42 | eric.snow | set | status: open -> closed resolution: fixed messages: +msg339299 stage: patch review -> resolved |
| 2019-04-01 15:15:16 | miss-islington | set | messages: +msg339298 |
| 2019-04-01 15:09:34 | miss-islington | set | keywords: +patch stage: commit review -> patch review pull_requests: +pull_request12581 |
| 2019-04-01 15:08:59 | miss-islington | set | nosy: +miss-islington messages: +msg339297 |
| 2019-03-30 16:07:43 | nanjekyejoannah | set | messages: +msg339209 |
| 2019-03-29 21:20:17 | eric.snow | set | messages: +msg339151 |
| 2019-03-13 01:21:31 | cheryl.sabella | set | stage: needs patch -> commit review |
| 2019-03-08 15:43:45 | nanjekyejoannah | set | keywords: -patch messages: +msg337496 stage: patch review -> needs patch |
| 2019-03-08 15:30:54 | nanjekyejoannah | set | keywords: +patch stage: needs patch -> patch review pull_requests: +pull_request12226 |
| 2019-03-02 06:50:40 | nanjekyejoannah | set | nosy: +nanjekyejoannah messages: +msg336996 |
| 2019-03-01 16:36:40 | eric.snow | create | |