Re: [Python-Dev] What is the purpose of the _PyThreadState_Current symbol in Python 3?

2018年9月28日 15:32:19 -0700

On 2018年9月28日 at 23:12, Nathaniel Smith <[email protected]> wrote:
> What information do you wish the interpreter provided, that would make your 
> program simpler and more reliable?
An exported global variable that points to the head of the
PyInterpreterState linked list (i.e. the return value of
PyInterpreterState_Head). This way my program could just look this up
from the dynsym section instead of scanning a dump of the bss section
in memory to find a possible candidate. It would be grand if also the
string in the rodata section that gives the Python version could be
dereferenced from dynsym, but that's a different question.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to