mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-96947: Fix comment on pyruntimestate->pyinterpreters
struct for next_id
(GH-96949)
`_next_interp_id` appeared on [this commit](e377416c10 (diff-7ac11e526f79b42d6ea9d3592cb99da46775640c69fa5510f4a6de87cced7141R68)
) renamed to `next_id` ([by this commit](2ebc5ce42a (diff-bccfc01bd96b58c022dde77486b8a896cbb31d7581bd4a4156b32c3654afe468R59)
)). Also, now, `next_id` gets initialized in` _PyInterpreterState_Enable()`12c5f328d2/Python/pystate.c (L241-L244)
because `_PyInterpreterState_Init()` function doesn't exist at all.
This commit is contained in:
parent
dfc73b5724
commit
a3e2f054d2
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ typedef struct pyruntimestate {
|
|||
in the operation of the runtime. It is also often the only
|
||||
interpreter. */
|
||||
PyInterpreterState *main;
|
||||
/* _next_interp_id is an auto-numbered sequence of small
|
||||
integers. It gets initialized in _PyInterpreterState_Init(),
|
||||
/* next_id is an auto-numbered sequence of small
|
||||
integers. It gets initialized in _PyInterpreterState_Enable(),
|
||||
which is called in Py_Initialize(), and used in
|
||||
PyInterpreterState_New(). A negative interpreter ID
|
||||
indicates an error occurred. The main interpreter will
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue