@@ -10,28 +10,59 @@ Changes will be added here periodically from the "Suggested changelog entry"
10
10
block in pull request descriptions.
11
11
12
12
13
-
14
13
IN DEVELOPMENT
15
14
--------------
16
15
17
16
Changes will be summarized here periodically.
18
17
19
- Version 2.10.1 (Oct 2? , 2022)
18
+ Version 2.10.1 (Oct 31 , 2022)
20
19
-----------------------------
21
20
21
+ This is the first version to fully support embedding the newly released Python 3.11.
22
22
23
23
Changes:
24
24
25
-
26
25
* Allow ``pybind11::capsule `` constructor to take null destructor pointers.
27
26
`#4221 <https://github.com/pybind/pybind11/pull/4221 >`_
28
27
29
28
* ``embed.h `` was changed so that ``PYTHONPATH `` is used also with Python 3.11
30
29
(established behavior).
31
30
`#4119 <https://github.com/pybind/pybind11/pull/4119 >`_
32
31
32
+ * A ``PYBIND11_SIMPLE_GIL_MANAGEMENT `` option was added (cmake, C++ define),
33
+ along with many additional tests in ``test_gil_scoped.py ``. The option may be
34
+ useful to try when debugging GIL-related issues, to determine if the more
35
+ complex default implementation is or is not to blame. See #4216 for
36
+ background. WARNING: Please be careful to not create ODR violations when
37
+ using the option: everything that is linked together with mutual symbol
38
+ visibility needs to be rebuilt.
39
+ `#4216 <https://github.com/pybind/pybind11/pull/4216 >`_
40
+
41
+ * ``PYBIND11_EXPORT_EXCEPTION `` was made non-empty only under macOS. This makes
42
+ Linux builds safer, and enables the removal of warning suppression pragmas for
43
+ Windows.
44
+ `#4298 <https://github.com/pybind/pybind11/pull/4298 >`_
45
+
33
46
Bug fixes:
34
47
48
+ * Fixed a bug where ``UnicodeDecodeError `` was not propagated from various
49
+ ``py::str `` ctors when decoding surrogate utf characters.
50
+ `#4294 <https://github.com/pybind/pybind11/pull/4294 >`_
51
+
52
+ * Revert perfect forwarding for ``make_iterator ``. This broke at least one
53
+ valid use case. May revisit later.
54
+ `#4234 <https://github.com/pybind/pybind11/pull/4234 >`_
55
+
56
+ * Fix support for safe casts to ``void* `` (regression in 2.10.0).
57
+ `#4275 <https://github.com/pybind/pybind11/pull/4275 >`_
58
+
59
+ * Fix ``char8_t `` support (regression in 2.9).
60
+ `#4278 <https://github.com/pybind/pybind11/pull/4278 >`_
61
+
62
+ * Unicode surrogate character in Python exception message leads to process
63
+ termination in ``error_already_set::what() ``.
64
+ `#4297 <https://github.com/pybind/pybind11/pull/4297 >`_
65
+
35
66
* Fix MSVC 2019 v.1924 & C++14 mode error for ``overload_cast ``.
36
67
`#4188 <https://github.com/pybind/pybind11/pull/4188 >`_
37
68
@@ -100,9 +131,15 @@ Performance and style:
100
131
* Optimize unpacking_collector when processing ``arg_v `` arguments.
101
132
`#4219 <https://github.com/pybind/pybind11/pull/4219 >`_
102
133
134
+ * Optimize casting C++ object to ``None ``.
135
+ `#4269 <https://github.com/pybind/pybind11/pull/4269 >`_
136
+
103
137
104
138
Build system improvements:
105
139
140
+ * CMake: revert overwrite behavior, now opt-in with ``PYBIND11_PYTHONLIBS_OVERRWRITE OFF ``.
141
+ `#4195 <https://github.com/pybind/pybind11/pull/4195 >`_
142
+
106
143
* Include a pkg-config file when installing pybind11, such as in the Python
107
144
package.
108
145
`#4077 <https://github.com/pybind/pybind11/pull/4077 >`_
0 commit comments