[issue29102] Add an id field to PyInterpreterState.

Eric Snow report at bugs.python.org
Thu Dec 29 14:01:37 EST 2016


Eric Snow added the comment:

Interpreter states are in a linked list, so you

can traverse the list to find one by ID.

Exactly.  At first I had added a PyInterpreterState_FindByID() or something
like that.  However, as you noted, I realized it wasn't necessary. :)

WRT weakrefs, we can't use them directly, but I suspect the higher-level
API will need it...

Everything you said about weakrefs sounds good.  We can discuss more when
we get to that high-level API.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29102>
_______________________________________


More information about the Python-bugs-list mailing list