Eric Snow
Eric Snow
New changeset 21412d037b07c08266e96dfd0c0e44a1b7693bc1 by Eric Snow in branch 'main': bpo-46541: Add a Comment About When to Use \_Py_DECLARE_STR(). (gh-32063) https://github.com/python/cpython/commit/21412d037b07c08266e96dfd0c0e44a1b7693bc1
FTR, the stdlib extensions still using `_Py_IDENTIFIER()` (`grep -l NEEDS_PY_IDENTIFIER **/*.c`): * [x] Modules/_asynciomodule.c * [x] Modules/_ctypes/callbacks.c * [x] Modules/_ctypes/callproc.c * [x] Modules/_ctypes/_ctypes.c * [x] Modules/_ctypes/stgdict.c * [x] Modules/_cursesmodule.c *...
Note that currently the syslog module already has the following characteristics: * an app that embeds CPython may call `openlog()` independently of any use of the syslog module, and the...
FWIW, for an implementation of mutli-phase init for a module, I would expect it to either deal with the sort of weird behavior syslog would have, or disallow use in...
> This is a typical example of a library with process-wide state. It's meant to be used by “the” application, rather than “a” library. My position is that process-wide state...
> Do we have a public API to check whether the current interpreter is main interpreter? We have [`PyInterpreterState_Main()`](https://docs.python.org/3.12/c-api/init.html#c.PyInterpreterState_Main), so you can do `current_interp == PyInterpreterState_Main()`. We also have an...
Thanks for fixing this, BTW.
In the interest of getting something landed for 3.7, so we can start using it in tests, I'm putting up a patch for a low-level interpreters module. In some ways...
@Ned, it may be a little tight to land this given the time left before beta 1. However, this is meant as a tool for us to use in the...
@Nick, I may make the name change you suggested in issue bpo-30439 ("\_subinterpreters").