Skip to content

Commit 0f6ad91

Browse files
docs: update changelog for 2.9.1 (#3670)
* docs: update changelog for 2.9.1 * Update changelog.rst * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update changelog.rst Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 21e1094 commit 0f6ad91

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

docs/changelog.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,59 @@ Changelog
66
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
77
<http://semver.org>`_ policy.
88

9+
Version 2.9.1 (Feb 2, 2022)
10+
---------------------------
11+
12+
Changes:
13+
14+
* If possible, attach Python exception with ``py::raise_from`` to ``TypeError``
15+
when casting from C++ to Python. This will give additional info if Python
16+
exceptions occur in the caster. Adds a test case of trying to convert a set
17+
from C++ to Python when the hash function is not defined in Python.
18+
`#3605 <https://github.com/pybind/pybind11/pull/3605>`_
19+
20+
* Add a mapping of C++11 nested exceptions to their Python exception
21+
equivalent using ``py::raise_from``. This attaches the nested exceptions in
22+
Python using the ``__cause__`` field.
23+
`#3608 <https://github.com/pybind/pybind11/pull/3608>`_
24+
25+
* Propagate Python exception traceback using ``raise_from`` if a pybind11
26+
function runs out of overloads.
27+
`#3671 <https://github.com/pybind/pybind11/pull/3671>`_
28+
29+
* ``py::multiple_inheritance`` is now only needed when C++ bases are hidden
30+
from pybind11.
31+
`#3650 <https://github.com/pybind/pybind11/pull/3650>`_ and
32+
`#3659 <https://github.com/pybind/pybind11/pull/3659>`_
33+
34+
35+
Bug fixes:
36+
37+
* Remove a boolean cast in ``numpy.h`` that causes MSVC C4800 warnings when
38+
compiling against Python 3.10 or newer.
39+
`#3669 <https://github.com/pybind/pybind11/pull/3669>`_
40+
41+
* Render ``py::bool_`` and ``py::float_`` as ``bool`` and ``float``
42+
respectively.
43+
`#3622 <https://github.com/pybind/pybind11/pull/3622>`_
44+
45+
Build system improvements:
46+
47+
* Fix CMake extension suffix computation on Python 3.10+.
48+
`#3663 <https://github.com/pybind/pybind11/pull/3663>`_
49+
50+
* Allow ``CMAKE_ARGS`` to override CMake args in pybind11's own ``setup.py``.
51+
`#3577 <https://github.com/pybind/pybind11/pull/3577>`_
52+
53+
* Remove a few deprecated c-headers.
54+
`#3610 <https://github.com/pybind/pybind11/pull/3610>`_
55+
56+
* More uniform handling of test targets.
57+
`#3590 <https://github.com/pybind/pybind11/pull/3590>`_
58+
59+
* Add clang-tidy readability check to catch potentially swapped function args.
60+
`#3611 <https://github.com/pybind/pybind11/pull/3611>`_
61+
962

1063
Version 2.9.0 (Dec 28, 2021)
1164
----------------------------

0 commit comments

Comments
 (0)