Victor Stinner
Victor Stinner
Oh great! You did a great job to write a short reproducer! I reported the issue upstream https://bugs.python.org/issue46006 and I posted my analysis there.
The bug triggers if the abc module is not cached (if there is no PYC file for the abc module). The workaround (until the bug is fixed) is to make...
The removal will likely happen in Python 3.12.
> So SMTP server functionality is planned to be removed from Python without any replacement? One replacement is aiosmtpd, but there are other SMTP servers implemented in Python or not...
pybind11 seems to use a different API on Python 3.10 and Python 3.11. PySys_SetArgvEx() called after Python init on Python 3.10 versus Py_InitializeFromConfig() on Python 3.11. Your dump says: ```...
> But evidently the computed sys.path is not in effect in test_embed. Sorry, I don't get how you manage to get PYTHONPATH environment variable being ignored. If you are looking...
PyConfig_InitIsolatedConfig() sets isolated to 1 and isolated=1 implies use_environment=0. * https://docs.python.org/dev/c-api/init_config.html#c.PyConfig.isolated * https://docs.python.org/dev/c-api/init_config.html#init-isolated-conf
> B. Switch to PyConfig_InitPythonConfig() instead? (What are the pros and cons?) That's closer to the regular "python" program. You can then tweak configuration from these defaults. For example, it...
> @vstinner Would you have a pointer to the cpython sources that update sys.path? (I looked around previously but didn't get lucky. I'll try again.) If you are talking about...
Python still uses PYTHONPATH env var. I cannot explain why pybind11 no longer uses it since you didn't provide a short example reproducing your issue. Python initialization is very complicated,...