docs: Update warning about Python 3.9.0 UB, now that 3.9.1 has been released (#2719)

This commit is contained in:
Yannick Jadoul 2020-12-09 00:08:19 +01:00 committed by GitHub
parent d068ab286a
commit 91a697203c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,16 +13,16 @@
.. warning:: .. warning::
Combining older versions of pybind11 (< 2.6.0) with the brand-new Python Combining older versions of pybind11 (< 2.6.0) with Python 3.9.0 will
3.9.0 will trigger undefined behavior that typically manifests as crashes trigger undefined behavior that typically manifests as crashes during
during interpreter shutdown (but could also destroy your data. **You have been interpreter shutdown (but could also destroy your data. **You have been
warned.**) warned.**)
We recommend that you wait for Python 3.9.1 slated for release in December, We recommend that you update to the latest patch release of Python (3.9.1),
which will include a `fix <https://github.com/python/cpython/pull/22670>`_ which includes a `fix <https://github.com/python/cpython/pull/22670>`_
that resolves this problem. In the meantime, please update to the latest that resolves this problem. If you do use Python 3.9.0, please update to
version of pybind11 (2.6.0 or newer), which includes a temporary workaround the latest version of pybind11 (2.6.0 or newer), which includes a temporary
specifically when Python 3.9.0 is detected at runtime. workaround specifically when Python 3.9.0 is detected at runtime.
**pybind11** is a lightweight header-only library that exposes C++ types **pybind11** is a lightweight header-only library that exposes C++ types
in Python and vice versa, mainly to create Python bindings of existing in Python and vice versa, mainly to create Python bindings of existing