blob: 1ac83ec3e62d00943675f6187cd4253ab9ddc2e3 [file] [log] [blame]
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001.. _changelog:
2
3Changelog
4#########
5
Wenzel Jakobed52f462016-12-26 13:18:26 +01006Starting with version 1.8.0, pybind11 releases use a `semantic versioning
Wenzel Jakobd3549d62016-12-23 16:01:04 +01007<http://semver.org>`_ policy.
Wenzel Jakobf9502152016-06-14 15:00:46 +02008
Wenzel Jakob7ec2ddf2019-09-21 20:19:58 +02009v2.4.2 (Sep 21, 2019)
10-----------------------------------------------------
11
12* Replaced usage of a C++14 only construct. `#1929
13 <https://github.com/pybind/pybind11/pull/1929>`_.
14
15* Made an ifdef future-proof for Python >= 4. `f3109d
16 <https://github.com/pybind/pybind11/commit/f3109d>`_.
17
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020018v2.4.1 (Sep 20, 2019)
19-----------------------------------------------------
20
21* Fixed a problem involving implicit conversion from enumerations to integers
Wenzel Jakob7ec2ddf2019-09-21 20:19:58 +020022 on Python 3.8. `#1780 <https://github.com/pybind/pybind11/pull/1780>`_.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020023
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020024v2.4.0 (Sep 19, 2019)
Wenzel Jakob64f2a5f2019-06-12 21:03:40 +020025-----------------------------------------------------
26
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020027* Try harder to keep pybind11-internal data structures separate when there
28 are potential ABI incompatibilities. Fixes crashes that occurred when loading
29 multiple pybind11 extensions that were e.g. compiled by GCC (libstdc++)
30 and Clang (libc++).
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020031 `#1588 <https://github.com/pybind/pybind11/pull/1588>`_ and
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020032 `c9f5a <https://github.com/pybind/pybind11/commit/c9f5a>`_.
33
34* Added support for ``__await__``, ``__aiter__``, and ``__anext__`` protocols.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020035 `#1842 <https://github.com/pybind/pybind11/pull/1842>`_.
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020036
37* ``pybind11_add_module()``: don't strip symbols when compiling in
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020038 ``RelWithDebInfo`` mode. `#1980
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020039 <https://github.com/pybind/pybind11/pull/1980>`_.
40
41* ``enum_``: Reproduce Python behavior when comparing against invalid values
42 (e.g. ``None``, strings, etc.). Add back support for ``__invert__()``.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020043 `#1912 <https://github.com/pybind/pybind11/pull/1912>`_,
44 `#1907 <https://github.com/pybind/pybind11/pull/1907>`_.
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020045
46* List insertion operation for ``py::list``.
47 Added ``.empty()`` to all collection types.
48 Added ``py::set::contains()`` and ``py::dict::contains()``.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020049 `#1887 <https://github.com/pybind/pybind11/pull/1887>`_,
50 `#1884 <https://github.com/pybind/pybind11/pull/1884>`_,
51 `#1888 <https://github.com/pybind/pybind11/pull/1888>`_.
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020052
Andre Schmeißer19189b42019-08-19 12:54:33 +020053* ``py::details::overload_cast_impl`` is available in C++11 mode, can be used
54 like ``overload_cast`` with an additional set of parantheses.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020055 `#1581 <https://github.com/pybind/pybind11/pull/1581>`_.
Wenzel Jakob64f2a5f2019-06-12 21:03:40 +020056
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020057* Fixed ``get_include()`` on Conda.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020058 `#1877 <https://github.com/pybind/pybind11/pull/1877>`_.
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020059
60* ``stl_bind.h``: negative indexing support.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020061 `#1882 <https://github.com/pybind/pybind11/pull/1882>`_.
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020062
63* Minor CMake fix to add MinGW compatibility.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020064 `#1851 <https://github.com/pybind/pybind11/pull/1851>`_.
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020065
66* GIL-related fixes.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020067 `#1836 <https://github.com/pybind/pybind11/pull/1836>`_,
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020068 `8b90b <https://github.com/pybind/pybind11/commit/8b90b>`_.
69
70* Other very minor/subtle fixes and improvements.
Wenzel Jakobe44fcc32019-09-20 11:10:49 +020071 `#1329 <https://github.com/pybind/pybind11/pull/1329>`_,
72 `#1910 <https://github.com/pybind/pybind11/pull/1910>`_,
73 `#1863 <https://github.com/pybind/pybind11/pull/1863>`_,
74 `#1847 <https://github.com/pybind/pybind11/pull/1847>`_,
75 `#1890 <https://github.com/pybind/pybind11/pull/1890>`_,
76 `#1860 <https://github.com/pybind/pybind11/pull/1860>`_,
77 `#1848 <https://github.com/pybind/pybind11/pull/1848>`_,
78 `#1821 <https://github.com/pybind/pybind11/pull/1821>`_,
79 `#1837 <https://github.com/pybind/pybind11/pull/1837>`_,
80 `#1833 <https://github.com/pybind/pybind11/pull/1833>`_,
81 `#1748 <https://github.com/pybind/pybind11/pull/1748>`_,
82 `#1852 <https://github.com/pybind/pybind11/pull/1852>`_.
Wenzel Jakob00a0aa92019-09-19 23:06:22 +020083
Wenzel Jakobcf36e3d2019-06-11 22:03:10 +020084v2.3.0 (June 11, 2019)
Wenzel Jakob8cf091a2017-08-31 14:01:08 +020085-----------------------------------------------------
86
Dean Moldovan56613942017-07-02 12:52:00 +020087* Significantly reduced module binary size (10-20%) when compiled in C++11 mode
88 with GCC/Clang, or in any mode with MSVC. Function signatures are now always
89 precomputed at compile time (this was previously only available in C++14 mode
90 for non-MSVC compilers).
91 `#934 <https://github.com/pybind/pybind11/pull/934>`_.
Wenzel Jakob8cf091a2017-08-31 14:01:08 +020092
Wenzel Jakob35c82c72018-09-11 10:08:48 +020093* Add basic support for tag-based static polymorphism, where classes
94 provide a method to returns the desired type of an instance.
95 `#1326 <https://github.com/pybind/pybind11/pull/1326>`_.
96
Wenzel Jakobf4245182018-09-01 01:20:24 +020097* Python type wrappers (``py::handle``, ``py::object``, etc.)
98 now support map Python's number protocol onto C++ arithmetic
99 operators such as ``operator+``, ``operator/=``, etc.
100 `#1511 <https://github.com/pybind/pybind11/pull/1511>`_.
101
Wenzel Jakob35c82c72018-09-11 10:08:48 +0200102* A number of improvements related to enumerations:
103
104 1. The ``enum_`` implementation was rewritten from scratch to reduce
105 code bloat. Rather than instantiating a full implementation for each
106 enumeration, most code is now contained in a generic base class.
107 `#1511 <https://github.com/pybind/pybind11/pull/1511>`_.
108
109 2. The ``value()`` method of ``py::enum_`` now accepts an optional
110 docstring that will be shown in the documentation of the associated
111 enumeration. `#1160 <https://github.com/pybind/pybind11/pull/1160>`_.
112
113 3. check for already existing enum value and throw an error if present.
114 `#1453 <https://github.com/pybind/pybind11/pull/1453>`_.
115
Wenzel Jakobcf36e3d2019-06-11 22:03:10 +0200116* Support for over-aligned type allocation via C++17's aligned ``new``
117 statement. `#1582 <https://github.com/pybind/pybind11/pull/1582>`_.
118
119* Added ``py::ellipsis()`` method for slicing of multidimensional NumPy arrays
Wenzel Jakob35c82c72018-09-11 10:08:48 +0200120 `#1502 <https://github.com/pybind/pybind11/pull/1502>`_.
121
Wenzel Jakobcf36e3d2019-06-11 22:03:10 +0200122* Numerous Improvements to the ``mkdoc.py`` script for extracting documentation
123 from C++ header files.
124 `#1788 <https://github.com/pybind/pybind11/pull/1788>`_.
125
Wenzel Jakob35c82c72018-09-11 10:08:48 +0200126* ``pybind11_add_module()``: allow including Python as a ``SYSTEM`` include path.
127 `#1416 <https://github.com/pybind/pybind11/pull/1416>`_.
128
Allan Leale76dff72018-10-11 10:28:12 +0200129* ``pybind11/stl.h`` does not convert strings to ``vector<string>`` anymore.
130 `#1258 <https://github.com/pybind/pybind11/issues/1258>`_.
131
Wenzel Jakobcf36e3d2019-06-11 22:03:10 +0200132* Mark static methods as such to fix auto-generated Sphinx documentation.
133 `#1732 <https://github.com/pybind/pybind11/pull/1732>`_.
134
135* Re-throw forced unwind exceptions (e.g. during pthread termination).
136 `#1208 <https://github.com/pybind/pybind11/pull/1208>`_.
137
138* Added ``__contains__`` method to the bindings of maps (``std::map``,
139 ``std::unordered_map``).
140 `#1767 <https://github.com/pybind/pybind11/pull/1767>`_.
141
142* Improvements to ``gil_scoped_acquire``.
143 `#1211 <https://github.com/pybind/pybind11/pull/1211>`_.
144
145* Type caster support for ``std::deque<T>``.
146 `#1609 <https://github.com/pybind/pybind11/pull/1609>`_.
147
148* Support for ``std::unique_ptr`` holders, whose deleters differ between a base and derived
149 class. `#1353 <https://github.com/pybind/pybind11/pull/1353>`_.
150
151* Construction of STL array/vector-like data structures from
152 iterators. Added an ``extend()`` operation.
153 `#1709 <https://github.com/pybind/pybind11/pull/1709>`_,
154
155* CMake build system improvements for projects that include non-C++
156 files (e.g. plain C, CUDA) in ``pybind11_add_module`` et al.
157 `#1678 <https://github.com/pybind/pybind11/pull/1678>`_.
158
159* Fixed asynchronous invocation and deallocation of Python functions
160 wrapped in ``std::function``.
161 `#1595 <https://github.com/pybind/pybind11/pull/1595>`_.
162
163* Fixes regarding return value policy propagation in STL type casters.
164 `#1603 <https://github.com/pybind/pybind11/pull/1603>`_.
165
166* Fixed scoped enum comparisons.
167 `#1571 <https://github.com/pybind/pybind11/pull/1571>`_.
168
169* Fixed iostream redirection for code that releases the GIL.
170 `#1368 <https://github.com/pybind/pybind11/pull/1368>`_,
171
172* A number of CI-related fixes.
173 `#1757 <https://github.com/pybind/pybind11/pull/1757>`_,
174 `#1744 <https://github.com/pybind/pybind11/pull/1744>`_,
175 `#1670 <https://github.com/pybind/pybind11/pull/1670>`_.
176
Wenzel Jakob35c82c72018-09-11 10:08:48 +0200177v2.2.4 (September 11, 2018)
178-----------------------------------------------------
179
180* Use new Python 3.7 Thread Specific Storage (TSS) implementation if available.
181 `#1454 <https://github.com/pybind/pybind11/pull/1454>`_,
182 `#1517 <https://github.com/pybind/pybind11/pull/1517>`_.
183
184* Fixes for newer MSVC versions and C++17 mode.
185 `#1347 <https://github.com/pybind/pybind11/pull/1347>`_,
186 `#1462 <https://github.com/pybind/pybind11/pull/1462>`_.
187
188* Propagate return value policies to type-specific casters
189 when casting STL containers.
190 `#1455 <https://github.com/pybind/pybind11/pull/1455>`_.
191
192* Allow ostream-redirection of more than 1024 characters.
193 `#1479 <https://github.com/pybind/pybind11/pull/1479>`_.
194
195* Set ``Py_DEBUG`` define when compiling against a debug Python build.
196 `#1438 <https://github.com/pybind/pybind11/pull/1438>`_.
197
198* Untangle integer logic in number type caster to work for custom
199 types that may only be castable to a restricted set of builtin types.
200 `#1442 <https://github.com/pybind/pybind11/pull/1442>`_.
201
202* CMake build system: Remember Python version in cache file.
203 `#1434 <https://github.com/pybind/pybind11/pull/1434>`_.
204
205* Fix for custom smart pointers: use ``std::addressof`` to obtain holder
206 address instead of ``operator&``.
207 `#1435 <https://github.com/pybind/pybind11/pull/1435>`_.
208
209* Properly report exceptions thrown during module initialization.
210 `#1362 <https://github.com/pybind/pybind11/pull/1362>`_.
211
212* Fixed a segmentation fault when creating empty-shaped NumPy array.
213 `#1371 <https://github.com/pybind/pybind11/pull/1371>`_.
214
215* The version of Intel C++ compiler must be >= 2017, and this is now checked by
216 the header files. `#1363 <https://github.com/pybind/pybind11/pull/1363>`_.
217
218* A few minor typo fixes and improvements to the test suite, and
219 patches that silence compiler warnings.
Wenzel Jakob6d190362017-11-16 22:24:36 +0100220
Chris Rusby22859bb2018-08-22 22:38:27 +0100221* Vectors now support construction from generators, as well as ``extend()`` from a
222 list or generator.
223 `#1496 <https://github.com/pybind/pybind11/pull/1496>`_.
224
225
Wenzel Jakobf5f66182018-04-29 15:47:03 +0200226v2.2.3 (April 29, 2018)
227-----------------------------------------------------
228
229* The pybind11 header location detection was replaced by a new implementation
230 that no longer depends on ``pip`` internals (the recently released ``pip``
231 10 has restricted access to this API).
232 `#1190 <https://github.com/pybind/pybind11/pull/1190>`_.
233
234* Small adjustment to an implementation detail to work around a compiler segmentation fault in Clang 3.3/3.4.
235 `#1350 <https://github.com/pybind/pybind11/pull/1350>`_.
236
237* The minimal supported version of the Intel compiler was >= 17.0 since
238 pybind11 v2.1. This check is now explicit, and a compile-time error is raised
239 if the compiler meet the requirement.
240 `#1363 <https://github.com/pybind/pybind11/pull/1363>`_.
241
242* Fixed an endianness-related fault in the test suite.
243 `#1287 <https://github.com/pybind/pybind11/pull/1287>`_.
Lori A. Burnsbdbe8d02018-04-29 07:48:25 -0400244
Wenzel Jakob2d0507d2018-02-07 11:05:41 +0100245v2.2.2 (February 7, 2018)
246-----------------------------------------------------
247
248* Fixed a segfault when combining embedded interpreter
249 shutdown/reinitialization with external loaded pybind11 modules.
250 `#1092 <https://github.com/pybind/pybind11/pull/1092>`_.
251
252* Eigen support: fixed a bug where Nx1/1xN numpy inputs couldn't be passed as
253 arguments to Eigen vectors (which for Eigen are simply compile-time fixed
254 Nx1/1xN matrices).
255 `#1106 <https://github.com/pybind/pybind11/pull/1106>`_.
256
257* Clarified to license by moving the licensing of contributions from
258 ``LICENSE`` into ``CONTRIBUTING.md``: the licensing of contributions is not
259 actually part of the software license as distributed. This isn't meant to be
260 a substantial change in the licensing of the project, but addresses concerns
261 that the clause made the license non-standard.
262 `#1109 <https://github.com/pybind/pybind11/issues/1109>`_.
263
264* Fixed a regression introduced in 2.1 that broke binding functions with lvalue
265 character literal arguments.
266 `#1128 <https://github.com/pybind/pybind11/pull/1128>`_.
267
268* MSVC: fix for compilation failures under /permissive-, and added the flag to
269 the appveyor test suite.
270 `#1155 <https://github.com/pybind/pybind11/pull/1155>`_.
271
272* Fixed ``__qualname__`` generation, and in turn, fixes how class names
273 (especially nested class names) are shown in generated docstrings.
274 `#1171 <https://github.com/pybind/pybind11/pull/1171>`_.
275
276* Updated the FAQ with a suggested project citation reference.
277 `#1189 <https://github.com/pybind/pybind11/pull/1189>`_.
278
279* Added fixes for deprecation warnings when compiled under C++17 with
280 ``-Wdeprecated`` turned on, and add ``-Wdeprecated`` to the test suite
281 compilation flags.
282 `#1191 <https://github.com/pybind/pybind11/pull/1191>`_.
283
284* Fixed outdated PyPI URLs in ``setup.py``.
285 `#1213 <https://github.com/pybind/pybind11/pull/1213>`_.
286
287* Fixed a refcount leak for arguments that end up in a ``py::args`` argument
288 for functions with both fixed positional and ``py::args`` arguments.
289 `#1216 <https://github.com/pybind/pybind11/pull/1216>`_.
290
291* Fixed a potential segfault resulting from possible premature destruction of
292 ``py::args``/``py::kwargs`` arguments with overloaded functions.
293 `#1223 <https://github.com/pybind/pybind11/pull/1223>`_.
294
295* Fixed ``del map[item]`` for a ``stl_bind.h`` bound stl map.
296 `#1229 <https://github.com/pybind/pybind11/pull/1229>`_.
297
298* Fixed a regression from v2.1.x where the aggregate initialization could
299 unintentionally end up at a constructor taking a templated
300 ``std::initializer_list<T>`` argument.
301 `#1249 <https://github.com/pybind/pybind11/pull/1249>`_.
302
303* Fixed an issue where calling a function with a keep_alive policy on the same
304 nurse/patient pair would cause the internal patient storage to needlessly
305 grow (unboundedly, if the nurse is long-lived).
306 `#1251 <https://github.com/pybind/pybind11/issues/1251>`_.
307
308* Various other minor fixes.
309
Wenzel Jakobf94d7592017-09-14 08:49:47 +0200310v2.2.1 (September 14, 2017)
Dean Moldovan7939f4b2017-09-04 13:49:19 +0200311-----------------------------------------------------
312
Dean Moldovan27680302017-09-13 19:04:25 +0200313* Added ``py::module::reload()`` member function for reloading a module.
314 `#1040 <https://github.com/pybind/pybind11/pull/1040>`_.
Dean Moldovanb0a0e4a2017-09-04 21:16:09 +0200315
Dean Moldovan953d2422017-09-10 16:53:02 +0200316* Fixed a reference leak in the number converter.
317 `#1078 <https://github.com/pybind/pybind11/pull/1078>`_.
318
Dean Moldovan27680302017-09-13 19:04:25 +0200319* Fixed compilation with Clang on host GCC < 5 (old libstdc++ which isn't fully
320 C++11 compliant). `#1062 <https://github.com/pybind/pybind11/pull/1062>`_.
321
Dean Moldovan3c4933c2017-09-01 21:42:20 +0200322* Fixed a regression where the automatic ``std::vector<bool>`` caster would
323 fail to compile. The same fix also applies to any container which returns
324 element proxies instead of references.
325 `#1053 <https://github.com/pybind/pybind11/pull/1053>`_.
326
Dean Moldovan7939f4b2017-09-04 13:49:19 +0200327* Fixed a regression where the ``py::keep_alive`` policy could not be applied
328 to constructors. `#1065 <https://github.com/pybind/pybind11/pull/1065>`_.
329
Dean Moldovan7b1de1e2017-09-03 01:31:47 +0200330* Fixed a nullptr dereference when loading a ``py::module_local`` type
331 that's only registered in an external module.
332 `#1058 <https://github.com/pybind/pybind11/pull/1058>`_.
333
Dean Moldovan27680302017-09-13 19:04:25 +0200334* Fixed implicit conversion of accessors to types derived from ``py::object``.
335 `#1076 <https://github.com/pybind/pybind11/pull/1076>`_.
336
337* The ``name`` in ``PYBIND11_MODULE(name, variable)`` can now be a macro.
338 `#1082 <https://github.com/pybind/pybind11/pull/1082>`_.
339
340* Relaxed overly strict ``py::pickle()`` check for matching get and set types.
341 `#1064 <https://github.com/pybind/pybind11/pull/1064>`_.
342
Dean Moldovan2b4477e2017-09-09 20:21:34 +0200343* Conversion errors now try to be more informative when it's likely that
344 a missing header is the cause (e.g. forgetting ``<pybind11/stl.h>``).
345 `#1077 <https://github.com/pybind/pybind11/pull/1077>`_.
346
Wenzel Jakob2a5a5ec2017-08-31 13:58:24 +0200347v2.2.0 (August 31, 2017)
Wenzel Jakobd405b1b2017-03-22 22:20:07 +0100348-----------------------------------------------------
349
Dean Moldovandb46a892017-08-13 22:25:15 +0200350* Support for embedding the Python interpreter. See the
351 :doc:`documentation page </advanced/embedding>` for a
352 full overview of the new features.
353 `#774 <https://github.com/pybind/pybind11/pull/774>`_,
354 `#889 <https://github.com/pybind/pybind11/pull/889>`_,
355 `#892 <https://github.com/pybind/pybind11/pull/892>`_,
356 `#920 <https://github.com/pybind/pybind11/pull/920>`_.
357
358 .. code-block:: cpp
359
360 #include <pybind11/embed.h>
361 namespace py = pybind11;
362
363 int main() {
364 py::scoped_interpreter guard{}; // start the interpreter and keep it alive
365
366 py::print("Hello, World!"); // use the Python API
367 }
368
369* Support for inheriting from multiple C++ bases in Python.
370 `#693 <https://github.com/pybind/pybind11/pull/693>`_.
371
372 .. code-block:: python
373
374 from cpp_module import CppBase1, CppBase2
375
376 class PyDerived(CppBase1, CppBase2):
377 def __init__(self):
378 CppBase1.__init__(self) # C++ bases must be initialized explicitly
379 CppBase2.__init__(self)
380
381* ``PYBIND11_MODULE`` is now the preferred way to create module entry points.
382 ``PYBIND11_PLUGIN`` is deprecated. See :ref:`macros` for details.
383 `#879 <https://github.com/pybind/pybind11/pull/879>`_.
384
385 .. code-block:: cpp
386
387 // new
388 PYBIND11_MODULE(example, m) {
389 m.def("add", [](int a, int b) { return a + b; });
390 }
391
392 // old
393 PYBIND11_PLUGIN(example) {
394 py::module m("example");
395 m.def("add", [](int a, int b) { return a + b; });
396 return m.ptr();
397 }
398
399* pybind11's headers and build system now more strictly enforce hidden symbol
400 visibility for extension modules. This should be seamless for most users,
Dean Moldovan1fb9df62017-08-18 19:26:49 +0200401 but see the :doc:`upgrade` if you use a custom build system.
402 `#995 <https://github.com/pybind/pybind11/pull/995>`_.
Dean Moldovandb46a892017-08-13 22:25:15 +0200403
404* Support for ``py::module_local`` types which allow multiple modules to
405 export the same C++ types without conflicts. This is useful for opaque
406 types like ``std::vector<int>``. ``py::bind_vector`` and ``py::bind_map``
407 now default to ``py::module_local`` if their elements are builtins or
408 local types. See :ref:`module_local` for details.
409 `#949 <https://github.com/pybind/pybind11/pull/949>`_,
410 `#981 <https://github.com/pybind/pybind11/pull/981>`_,
411 `#995 <https://github.com/pybind/pybind11/pull/995>`_,
412 `#997 <https://github.com/pybind/pybind11/pull/997>`_.
413
414* Custom constructors can now be added very easily using lambdas or factory
415 functions which return a class instance by value, pointer or holder. This
416 supersedes the old placement-new ``__init__`` technique.
417 See :ref:`custom_constructors` for details.
Dean Moldovan4c540442017-08-30 21:53:08 +0200418 `#805 <https://github.com/pybind/pybind11/pull/805>`_,
419 `#1014 <https://github.com/pybind/pybind11/pull/1014>`_.
Dean Moldovandb46a892017-08-13 22:25:15 +0200420
421 .. code-block:: cpp
422
423 struct Example {
424 Example(std::string);
425 };
426
427 py::class_<Example>(m, "Example")
428 .def(py::init<std::string>()) // existing constructor
429 .def(py::init([](int n) { // custom constructor
430 return std::make_unique<Example>(std::to_string(n));
431 }));
432
Dean Moldovan1e5a7da2017-08-24 01:53:15 +0200433* Similarly to custom constructors, pickling support functions are now bound
434 using the ``py::pickle()`` adaptor which improves type safety. See the
435 :doc:`upgrade` and :ref:`pickling` for details.
436 `#1038 <https://github.com/pybind/pybind11/pull/1038>`_.
437
Dean Moldovandb46a892017-08-13 22:25:15 +0200438* Builtin support for converting C++17 standard library types and general
439 conversion improvements:
440
441 1. C++17 ``std::variant`` is supported right out of the box. C++11/14
442 equivalents (e.g. ``boost::variant``) can also be added with a simple
443 user-defined specialization. See :ref:`cpp17_container_casters` for details.
444 `#811 <https://github.com/pybind/pybind11/pull/811>`_,
445 `#845 <https://github.com/pybind/pybind11/pull/845>`_,
446 `#989 <https://github.com/pybind/pybind11/pull/989>`_.
447
448 2. Out-of-the-box support for C++17 ``std::string_view``.
449 `#906 <https://github.com/pybind/pybind11/pull/906>`_.
450
451 3. Improved compatibility of the builtin ``optional`` converter.
452 `#874 <https://github.com/pybind/pybind11/pull/874>`_.
453
454 4. The ``bool`` converter now accepts ``numpy.bool_`` and types which
455 define ``__bool__`` (Python 3.x) or ``__nonzero__`` (Python 2.7).
456 `#925 <https://github.com/pybind/pybind11/pull/925>`_.
457
458 5. C++-to-Python casters are now more efficient and move elements out
459 of rvalue containers whenever possible.
460 `#851 <https://github.com/pybind/pybind11/pull/851>`_,
461 `#936 <https://github.com/pybind/pybind11/pull/936>`_,
462 `#938 <https://github.com/pybind/pybind11/pull/938>`_.
463
464 6. Fixed ``bytes`` to ``std::string/char*`` conversion on Python 3.
465 `#817 <https://github.com/pybind/pybind11/pull/817>`_.
466
467 7. Fixed lifetime of temporary C++ objects created in Python-to-C++ conversions.
468 `#924 <https://github.com/pybind/pybind11/pull/924>`_.
469
Henry Schreiner8b405052017-08-24 17:12:43 -0700470* Scope guard call policy for RAII types, e.g. ``py::call_guard<py::gil_scoped_release>()``,
471 ``py::call_guard<py::scoped_ostream_redirect>()``. See :ref:`call_policies` for details.
Dean Moldovandb46a892017-08-13 22:25:15 +0200472 `#740 <https://github.com/pybind/pybind11/pull/740>`_.
473
Henry Schreiner8b405052017-08-24 17:12:43 -0700474* Utility for redirecting C++ streams to Python (e.g. ``std::cout`` ->
475 ``sys.stdout``). Scope guard ``py::scoped_ostream_redirect`` in C++ and
476 a context manager in Python. See :ref:`ostream_redirect`.
477 `#1009 <https://github.com/pybind/pybind11/pull/1009>`_.
478
Dean Moldovandb46a892017-08-13 22:25:15 +0200479* Improved handling of types and exceptions across module boundaries.
480 `#915 <https://github.com/pybind/pybind11/pull/915>`_,
481 `#951 <https://github.com/pybind/pybind11/pull/951>`_,
482 `#995 <https://github.com/pybind/pybind11/pull/995>`_.
483
484* Fixed destruction order of ``py::keep_alive`` nurse/patient objects
485 in reference cycles.
486 `#856 <https://github.com/pybind/pybind11/pull/856>`_.
487
488* Numpy and buffer protocol related improvements:
489
490 1. Support for negative strides in Python buffer objects/numpy arrays. This
491 required changing integers from unsigned to signed for the related C++ APIs.
492 Note: If you have compiler warnings enabled, you may notice some new conversion
493 warnings after upgrading. These can be resolved with ``static_cast``.
494 `#782 <https://github.com/pybind/pybind11/pull/782>`_.
495
496 2. Support ``std::complex`` and arrays inside ``PYBIND11_NUMPY_DTYPE``.
497 `#831 <https://github.com/pybind/pybind11/pull/831>`_,
498 `#832 <https://github.com/pybind/pybind11/pull/832>`_.
499
500 3. Support for constructing ``py::buffer_info`` and ``py::arrays`` using
501 arbitrary containers or iterators instead of requiring a ``std::vector``.
502 `#788 <https://github.com/pybind/pybind11/pull/788>`_,
503 `#822 <https://github.com/pybind/pybind11/pull/822>`_,
504 `#860 <https://github.com/pybind/pybind11/pull/860>`_.
505
506 4. Explicitly check numpy version and require >= 1.7.0.
507 `#819 <https://github.com/pybind/pybind11/pull/819>`_.
508
509* Support for allowing/prohibiting ``None`` for specific arguments and improved
510 ``None`` overload resolution order. See :ref:`none_arguments` for details.
511 `#843 <https://github.com/pybind/pybind11/pull/843>`_.
512 `#859 <https://github.com/pybind/pybind11/pull/859>`_.
513
514* Added ``py::exec()`` as a shortcut for ``py::eval<py::eval_statements>()``
515 and support for C++11 raw string literals as input. See :ref:`eval`.
516 `#766 <https://github.com/pybind/pybind11/pull/766>`_,
517 `#827 <https://github.com/pybind/pybind11/pull/827>`_.
518
519* ``py::vectorize()`` ignores non-vectorizable arguments and supports
520 member functions.
521 `#762 <https://github.com/pybind/pybind11/pull/762>`_.
522
523* Support for bound methods as callbacks (``pybind11/functional.h``).
524 `#815 <https://github.com/pybind/pybind11/pull/815>`_.
525
526* Allow aliasing pybind11 methods: ``cls.attr("foo") = cls.attr("bar")``.
527 `#802 <https://github.com/pybind/pybind11/pull/802>`_.
528
529* Don't allow mixed static/non-static overloads.
530 `#804 <https://github.com/pybind/pybind11/pull/804>`_.
531
532* Fixed overriding static properties in derived classes.
533 `#784 <https://github.com/pybind/pybind11/pull/784>`_.
534
Wenzel Jakobcf36e3d2019-06-11 22:03:10 +0200535* Added support for write only properties.
536 `#1144 <https://github.com/pybind/pybind11/pull/1144>`_.
537
Dean Moldovan4c540442017-08-30 21:53:08 +0200538* Improved deduction of member functions of a derived class when its bases
539 aren't registered with pybind11.
Dean Moldovandb46a892017-08-13 22:25:15 +0200540 `#855 <https://github.com/pybind/pybind11/pull/855>`_.
541
542 .. code-block:: cpp
543
544 struct Base {
545 int foo() { return 42; }
546 }
547
548 struct Derived : Base {}
549
550 // Now works, but previously required also binding `Base`
551 py::class_<Derived>(m, "Derived")
552 .def("foo", &Derived::foo); // function is actually from `Base`
553
Wenzel Jakobb12a9d62017-08-23 16:30:56 +0200554* The implementation of ``py::init<>`` now uses C++11 brace initialization
555 syntax to construct instances, which permits binding implicit constructors of
556 aggregate types. `#1015 <https://github.com/pybind/pybind11/pull/1015>`_.
557
558 .. code-block:: cpp
559
560 struct Aggregate {
561 int a;
562 std::string b;
563 };
564
565 py::class_<Aggregate>(m, "Aggregate")
566 .def(py::init<int, const std::string &>());
567
Dean Moldovandb46a892017-08-13 22:25:15 +0200568* Fixed issues with multiple inheritance with offset base/derived pointers.
569 `#812 <https://github.com/pybind/pybind11/pull/812>`_,
570 `#866 <https://github.com/pybind/pybind11/pull/866>`_,
571 `#960 <https://github.com/pybind/pybind11/pull/960>`_.
572
Dean Moldovan4c540442017-08-30 21:53:08 +0200573* Fixed reference leak of type objects.
574 `#1030 <https://github.com/pybind/pybind11/pull/1030>`_.
575
Dean Moldovandb46a892017-08-13 22:25:15 +0200576* Improved support for the ``/std:c++14`` and ``/std:c++latest`` modes
577 on MSVC 2017.
578 `#841 <https://github.com/pybind/pybind11/pull/841>`_,
579 `#999 <https://github.com/pybind/pybind11/pull/999>`_.
580
581* Fixed detection of private operator new on MSVC.
582 `#893 <https://github.com/pybind/pybind11/pull/893>`_,
583 `#918 <https://github.com/pybind/pybind11/pull/918>`_.
584
585* Intel C++ compiler compatibility fixes.
586 `#937 <https://github.com/pybind/pybind11/pull/937>`_.
587
588* Fixed implicit conversion of `py::enum_` to integer types on Python 2.7.
589 `#821 <https://github.com/pybind/pybind11/pull/821>`_.
590
Bruce Merry37de2da2017-08-30 14:22:00 +0200591* Added ``py::hash`` to fetch the hash value of Python objects, and
592 ``.def(hash(py::self))`` to provide the C++ ``std::hash`` as the Python
593 ``__hash__`` method.
594 `#1034 <https://github.com/pybind/pybind11/pull/1034>`_.
595
Dean Moldovandb46a892017-08-13 22:25:15 +0200596* Fixed ``__truediv__`` on Python 2 and ``__itruediv__`` on Python 3.
597 `#867 <https://github.com/pybind/pybind11/pull/867>`_.
598
599* ``py::capsule`` objects now support the ``name`` attribute. This is useful
600 for interfacing with ``scipy.LowLevelCallable``.
601 `#902 <https://github.com/pybind/pybind11/pull/902>`_.
602
603* Fixed ``py::make_iterator``'s ``__next__()`` for past-the-end calls.
604 `#897 <https://github.com/pybind/pybind11/pull/897>`_.
605
606* Added ``error_already_set::matches()`` for checking Python exceptions.
607 `#772 <https://github.com/pybind/pybind11/pull/772>`_.
608
609* Deprecated ``py::error_already_set::clear()``. It's no longer needed
610 following a simplification of the ``py::error_already_set`` class.
611 `#954 <https://github.com/pybind/pybind11/pull/954>`_.
612
613* Deprecated ``py::handle::operator==()`` in favor of ``py::handle::is()``
614 `#825 <https://github.com/pybind/pybind11/pull/825>`_.
615
616* Deprecated ``py::object::borrowed``/``py::object::stolen``.
617 Use ``py::object::borrowed_t{}``/``py::object::stolen_t{}`` instead.
618 `#771 <https://github.com/pybind/pybind11/pull/771>`_.
619
Dean Moldovan4c540442017-08-30 21:53:08 +0200620* Changed internal data structure versioning to avoid conflicts between
621 modules compiled with different revisions of pybind11.
622 `#1012 <https://github.com/pybind/pybind11/pull/1012>`_.
623
Dean Moldovandb46a892017-08-13 22:25:15 +0200624* Additional compile-time and run-time error checking and more informative messages.
625 `#786 <https://github.com/pybind/pybind11/pull/786>`_,
626 `#794 <https://github.com/pybind/pybind11/pull/794>`_,
627 `#803 <https://github.com/pybind/pybind11/pull/803>`_.
628
629* Various minor improvements and fixes.
630 `#764 <https://github.com/pybind/pybind11/pull/764>`_,
631 `#791 <https://github.com/pybind/pybind11/pull/791>`_,
632 `#795 <https://github.com/pybind/pybind11/pull/795>`_,
633 `#840 <https://github.com/pybind/pybind11/pull/840>`_,
634 `#844 <https://github.com/pybind/pybind11/pull/844>`_,
635 `#846 <https://github.com/pybind/pybind11/pull/846>`_,
636 `#849 <https://github.com/pybind/pybind11/pull/849>`_,
637 `#858 <https://github.com/pybind/pybind11/pull/858>`_,
638 `#862 <https://github.com/pybind/pybind11/pull/862>`_,
639 `#871 <https://github.com/pybind/pybind11/pull/871>`_,
640 `#872 <https://github.com/pybind/pybind11/pull/872>`_,
641 `#881 <https://github.com/pybind/pybind11/pull/881>`_,
642 `#888 <https://github.com/pybind/pybind11/pull/888>`_,
643 `#899 <https://github.com/pybind/pybind11/pull/899>`_,
644 `#928 <https://github.com/pybind/pybind11/pull/928>`_,
645 `#931 <https://github.com/pybind/pybind11/pull/931>`_,
646 `#944 <https://github.com/pybind/pybind11/pull/944>`_,
647 `#950 <https://github.com/pybind/pybind11/pull/950>`_,
648 `#952 <https://github.com/pybind/pybind11/pull/952>`_,
649 `#962 <https://github.com/pybind/pybind11/pull/962>`_,
650 `#965 <https://github.com/pybind/pybind11/pull/965>`_,
651 `#970 <https://github.com/pybind/pybind11/pull/970>`_,
Dean Moldovandb46a892017-08-13 22:25:15 +0200652 `#978 <https://github.com/pybind/pybind11/pull/978>`_,
Dean Moldovan4c540442017-08-30 21:53:08 +0200653 `#979 <https://github.com/pybind/pybind11/pull/979>`_,
Wenzel Jakoba1041192017-08-28 16:35:32 +0200654 `#986 <https://github.com/pybind/pybind11/pull/986>`_,
Dean Moldovan4c540442017-08-30 21:53:08 +0200655 `#1020 <https://github.com/pybind/pybind11/pull/1020>`_,
656 `#1027 <https://github.com/pybind/pybind11/pull/1027>`_,
Wenzel Jakoba1041192017-08-28 16:35:32 +0200657 `#1037 <https://github.com/pybind/pybind11/pull/1037>`_.
Dean Moldovandb46a892017-08-13 22:25:15 +0200658
659* Testing improvements.
660 `#798 <https://github.com/pybind/pybind11/pull/798>`_,
661 `#882 <https://github.com/pybind/pybind11/pull/882>`_,
662 `#898 <https://github.com/pybind/pybind11/pull/898>`_,
663 `#900 <https://github.com/pybind/pybind11/pull/900>`_,
664 `#921 <https://github.com/pybind/pybind11/pull/921>`_,
665 `#923 <https://github.com/pybind/pybind11/pull/923>`_,
666 `#963 <https://github.com/pybind/pybind11/pull/963>`_.
667
Wenzel Jakobdb200952017-04-07 02:03:46 +0200668v2.1.1 (April 7, 2017)
669-----------------------------------------------------
670
671* Fixed minimum version requirement for MSVC 2015u3
672 `#773 <https://github.com/pybind/pybind11/pull/773>`_.
673
Wenzel Jakobd405b1b2017-03-22 22:20:07 +0100674v2.1.0 (March 22, 2017)
Wenzel Jakoba9730be2017-01-06 14:18:44 +0100675-----------------------------------------------------
676
Wenzel Jakob62e5fef2017-03-22 22:07:45 +0100677* pybind11 now performs function overload resolution in two phases. The first
678 phase only considers exact type matches, while the second allows for implicit
679 conversions to take place. A special ``noconvert()`` syntax can be used to
680 completely disable implicit conversions for specific arguments.
681 `#643 <https://github.com/pybind/pybind11/pull/643>`_,
682 `#634 <https://github.com/pybind/pybind11/pull/634>`_,
683 `#650 <https://github.com/pybind/pybind11/pull/650>`_.
684
685* Fixed a regression where static properties no longer worked with classes
686 using multiple inheritance. The ``py::metaclass`` attribute is no longer
687 necessary (and deprecated as of this release) when binding classes with
688 static properties.
689 `#679 <https://github.com/pybind/pybind11/pull/679>`_,
690
691* Classes bound using ``pybind11`` can now use custom metaclasses.
692 `#679 <https://github.com/pybind/pybind11/pull/679>`_,
693
694* ``py::args`` and ``py::kwargs`` can now be mixed with other positional
695 arguments when binding functions using pybind11.
696 `#611 <https://github.com/pybind/pybind11/pull/611>`_.
697
698* Improved support for C++11 unicode string and character types; added
699 extensive documentation regarding pybind11's string conversion behavior.
700 `#624 <https://github.com/pybind/pybind11/pull/624>`_,
701 `#636 <https://github.com/pybind/pybind11/pull/636>`_,
702 `#715 <https://github.com/pybind/pybind11/pull/715>`_.
703
704* pybind11 can now avoid expensive copies when converting Eigen arrays to NumPy
705 arrays (and vice versa). `#610 <https://github.com/pybind/pybind11/pull/610>`_.
706
707* The "fast path" in ``py::vectorize`` now works for any full-size group of C or
708 F-contiguous arrays. The non-fast path is also faster since it no longer performs
709 copies of the input arguments (except when type conversions are necessary).
710 `#610 <https://github.com/pybind/pybind11/pull/610>`_.
711
712* Added fast, unchecked access to NumPy arrays via a proxy object.
713 `#746 <https://github.com/pybind/pybind11/pull/746>`_.
714
Wenzel Jakob0d929382017-03-22 22:52:29 +0100715* Transparent support for class-specific ``operator new`` and
Wenzel Jakob62e5fef2017-03-22 22:07:45 +0100716 ``operator delete`` implementations.
717 `#755 <https://github.com/pybind/pybind11/pull/755>`_.
718
719* Slimmer and more efficient STL-compatible iterator interface for sequence types.
720 `#662 <https://github.com/pybind/pybind11/pull/662>`_.
721
722* Improved custom holder type support.
723 `#607 <https://github.com/pybind/pybind11/pull/607>`_.
724
725* ``nullptr`` to ``None`` conversion fixed in various builtin type casters.
726 `#732 <https://github.com/pybind/pybind11/pull/732>`_.
727
728* ``enum_`` now exposes its members via a special ``__members__`` attribute.
729 `#666 <https://github.com/pybind/pybind11/pull/666>`_.
730
731* ``std::vector`` bindings created using ``stl_bind.h`` can now optionally
732 implement the buffer protocol. `#488 <https://github.com/pybind/pybind11/pull/488>`_.
733
734* Automated C++ reference documentation using doxygen and breathe.
735 `#598 <https://github.com/pybind/pybind11/pull/598>`_.
736
737* Added minimum compiler version assertions.
738 `#727 <https://github.com/pybind/pybind11/pull/727>`_.
739
740* Improved compatibility with C++1z.
741 `#677 <https://github.com/pybind/pybind11/pull/677>`_.
742
743* Improved ``py::capsule`` API. Can be used to implement cleanup
744 callbacks that are involved at module destruction time.
745 `#752 <https://github.com/pybind/pybind11/pull/752>`_.
746
747* Various minor improvements and fixes.
748 `#595 <https://github.com/pybind/pybind11/pull/595>`_,
749 `#588 <https://github.com/pybind/pybind11/pull/588>`_,
750 `#589 <https://github.com/pybind/pybind11/pull/589>`_,
751 `#603 <https://github.com/pybind/pybind11/pull/603>`_,
752 `#619 <https://github.com/pybind/pybind11/pull/619>`_,
753 `#648 <https://github.com/pybind/pybind11/pull/648>`_,
754 `#695 <https://github.com/pybind/pybind11/pull/695>`_,
755 `#720 <https://github.com/pybind/pybind11/pull/720>`_,
756 `#723 <https://github.com/pybind/pybind11/pull/723>`_,
757 `#729 <https://github.com/pybind/pybind11/pull/729>`_,
758 `#724 <https://github.com/pybind/pybind11/pull/724>`_,
759 `#742 <https://github.com/pybind/pybind11/pull/742>`_,
760 `#753 <https://github.com/pybind/pybind11/pull/753>`_.
Wenzel Jakoba9730be2017-01-06 14:18:44 +0100761
Wenzel Jakobf8dafe92017-01-04 15:09:49 +0100762v2.0.1 (Jan 4, 2017)
763-----------------------------------------------------
764
765* Fix pointer to reference error in type_caster on MSVC
766 `#583 <https://github.com/pybind/pybind11/pull/583>`_.
767
768* Fixed a segmentation in the test suite due to a typo
769 `cd7eac <https://github.com/pybind/pybind11/commit/cd7eac>`_.
770
Wenzel Jakobe33ef9c2017-01-01 13:55:06 +0100771v2.0.0 (Jan 1, 2017)
Wenzel Jakobed52f462016-12-26 13:18:26 +0100772-----------------------------------------------------
773
774* Fixed a reference counting regression affecting types with custom metaclasses
775 (introduced in v2.0.0-rc1).
776 `#571 <https://github.com/pybind/pybind11/pull/571>`_.
777
778* Quenched a CMake policy warning.
779 `#570 <https://github.com/pybind/pybind11/pull/570>`_.
780
Wenzel Jakobe33ef9c2017-01-01 13:55:06 +0100781v2.0.0-rc1 (Dec 23, 2016)
Wenzel Jakobf88af0c2016-06-22 13:52:31 +0200782-----------------------------------------------------
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200783
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100784The pybind11 developers are excited to issue a release candidate of pybind11
785with a subsequent v2.0.0 release planned in early January next year.
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200786
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100787An incredible amount of effort by went into pybind11 over the last ~5 months,
788leading to a release that is jam-packed with exciting new features and numerous
Wenzel Jakobf8dafe92017-01-04 15:09:49 +0100789usability improvements. The following list links PRs or individual commits
Wenzel Jakobed52f462016-12-26 13:18:26 +0100790whenever applicable.
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100791
792Happy Christmas!
793
794* Support for binding C++ class hierarchies that make use of multiple
795 inheritance. `#410 <https://github.com/pybind/pybind11/pull/410>`_.
796
797* PyPy support: pybind11 now supports nightly builds of PyPy and will
798 interoperate with the future 5.7 release. No code changes are necessary,
799 everything "just" works as usual. Note that we only target the Python 2.7
800 branch for now; support for 3.x will be added once its ``cpyext`` extension
Wenzel Jakobed52f462016-12-26 13:18:26 +0100801 support catches up. A few minor features remain unsupported for the time
802 being (notably dynamic attributes in custom types).
803 `#527 <https://github.com/pybind/pybind11/pull/527>`_.
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100804
luzpaz4b874612018-05-06 13:54:10 +0000805* Significant work on the documentation -- in particular, the monolithic
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100806 ``advanced.rst`` file was restructured into a easier to read hierarchical
807 organization. `#448 <https://github.com/pybind/pybind11/pull/448>`_.
808
809* Many NumPy-related improvements:
810
811 1. Object-oriented API to access and modify NumPy ``ndarray`` instances,
812 replicating much of the corresponding NumPy C API functionality.
813 `#402 <https://github.com/pybind/pybind11/pull/402>`_.
814
815 2. NumPy array ``dtype`` array descriptors are now first-class citizens and
816 are exposed via a new class ``py::dtype``.
817
818 3. Structured dtypes can be registered using the ``PYBIND11_NUMPY_DTYPE()``
819 macro. Special ``array`` constructors accepting dtype objects were also
820 added.
821
822 One potential caveat involving this change: format descriptor strings
823 should now be accessed via ``format_descriptor::format()`` (however, for
824 compatibility purposes, the old syntax ``format_descriptor::value`` will
825 still work for non-structured data types). `#308
826 <https://github.com/pybind/pybind11/pull/308>`_.
827
828 4. Further improvements to support structured dtypes throughout the system.
829 `#472 <https://github.com/pybind/pybind11/pull/472>`_,
830 `#474 <https://github.com/pybind/pybind11/pull/474>`_,
831 `#459 <https://github.com/pybind/pybind11/pull/459>`_,
832 `#453 <https://github.com/pybind/pybind11/pull/453>`_,
833 `#452 <https://github.com/pybind/pybind11/pull/452>`_, and
834 `#505 <https://github.com/pybind/pybind11/pull/505>`_.
835
836 5. Fast access operators. `#497 <https://github.com/pybind/pybind11/pull/497>`_.
837
838 6. Constructors for arrays whose storage is owned by another object.
839 `#440 <https://github.com/pybind/pybind11/pull/440>`_.
840
841 7. Added constructors for ``array`` and ``array_t`` explicitly accepting shape
842 and strides; if strides are not provided, they are deduced assuming
843 C-contiguity. Also added simplified constructors for 1-dimensional case.
844
845 8. Added buffer/NumPy support for ``char[N]`` and ``std::array<char, N>`` types.
846
847 9. Added ``memoryview`` wrapper type which is constructible from ``buffer_info``.
848
849* Eigen: many additional conversions and support for non-contiguous
850 arrays/slices.
851 `#427 <https://github.com/pybind/pybind11/pull/427>`_,
852 `#315 <https://github.com/pybind/pybind11/pull/315>`_,
853 `#316 <https://github.com/pybind/pybind11/pull/316>`_,
854 `#312 <https://github.com/pybind/pybind11/pull/312>`_, and
855 `#267 <https://github.com/pybind/pybind11/pull/267>`_
856
857* Incompatible changes in ``class_<...>::class_()``:
858
859 1. Declarations of types that provide access via the buffer protocol must
860 now include the ``py::buffer_protocol()`` annotation as an argument to
861 the ``class_`` constructor.
862
863 2. Declarations of types that require a custom metaclass (i.e. all classes
864 which include static properties via commands such as
865 ``def_readwrite_static()``) must now include the ``py::metaclass()``
866 annotation as an argument to the ``class_`` constructor.
867
868 These two changes were necessary to make type definitions in pybind11
869 future-proof, and to support PyPy via its cpyext mechanism. `#527
870 <https://github.com/pybind/pybind11/pull/527>`_.
871
872
luzpaz4b874612018-05-06 13:54:10 +0000873 3. This version of pybind11 uses a redesigned mechanism for instantiating
874 trampoline classes that are used to override virtual methods from within
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100875 Python. This led to the following user-visible syntax change: instead of
876
877 .. code-block:: cpp
878
879 py::class_<TrampolineClass>("MyClass")
880 .alias<MyClass>()
881 ....
882
883 write
884
885 .. code-block:: cpp
886
887 py::class_<MyClass, TrampolineClass>("MyClass")
888 ....
889
890 Importantly, both the original and the trampoline class are now
891 specified as an arguments (in arbitrary order) to the ``py::class_``
892 template, and the ``alias<..>()`` call is gone. The new scheme has zero
893 overhead in cases when Python doesn't override any functions of the
894 underlying C++ class. `rev. 86d825
895 <https://github.com/pybind/pybind11/commit/86d825>`_.
896
Wenzel Jakobe6b2f752016-07-10 10:54:46 +0200897* Added ``eval`` and ``eval_file`` functions for evaluating expressions and
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100898 statements from a string or file. `rev. 0d3fc3
899 <https://github.com/pybind/pybind11/commit/0d3fc3>`_.
900
901* pybind11 can now create types with a modifiable dictionary.
902 `#437 <https://github.com/pybind/pybind11/pull/437>`_ and
903 `#444 <https://github.com/pybind/pybind11/pull/444>`_.
904
905* Support for translation of arbitrary C++ exceptions to Python counterparts.
906 `#296 <https://github.com/pybind/pybind11/pull/296>`_ and
907 `#273 <https://github.com/pybind/pybind11/pull/273>`_.
908
909* Report full backtraces through mixed C++/Python code, better reporting for
910 import errors, fixed GIL management in exception processing.
911 `#537 <https://github.com/pybind/pybind11/pull/537>`_,
912 `#494 <https://github.com/pybind/pybind11/pull/494>`_,
913 `rev. e72d95 <https://github.com/pybind/pybind11/commit/e72d95>`_, and
914 `rev. 099d6e <https://github.com/pybind/pybind11/commit/099d6e>`_.
915
916* Support for bit-level operations, comparisons, and serialization of C++
917 enumerations. `#503 <https://github.com/pybind/pybind11/pull/503>`_,
918 `#508 <https://github.com/pybind/pybind11/pull/508>`_,
919 `#380 <https://github.com/pybind/pybind11/pull/380>`_,
920 `#309 <https://github.com/pybind/pybind11/pull/309>`_.
921 `#311 <https://github.com/pybind/pybind11/pull/311>`_.
922
923* The ``class_`` constructor now accepts its template arguments in any order.
924 `#385 <https://github.com/pybind/pybind11/pull/385>`_.
925
926* Attribute and item accessors now have a more complete interface which makes
927 it possible to chain attributes as in
928 ``obj.attr("a")[key].attr("b").attr("method")(1, 2, 3)``. `#425
929 <https://github.com/pybind/pybind11/pull/425>`_.
930
931* Major redesign of the default and conversion constructors in ``pytypes.h``.
932 `#464 <https://github.com/pybind/pybind11/pull/464>`_.
933
934* Added built-in support for ``std::shared_ptr`` holder type. It is no longer
935 necessary to to include a declaration of the form
936 ``PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>)`` (though continuing to
937 do so won't cause an error).
938 `#454 <https://github.com/pybind/pybind11/pull/454>`_.
939
940* New ``py::overload_cast`` casting operator to select among multiple possible
941 overloads of a function. An example:
942
943 .. code-block:: cpp
944
945 py::class_<Pet>(m, "Pet")
946 .def("set", py::overload_cast<int>(&Pet::set), "Set the pet's age")
947 .def("set", py::overload_cast<const std::string &>(&Pet::set), "Set the pet's name");
948
949 This feature only works on C++14-capable compilers.
950 `#541 <https://github.com/pybind/pybind11/pull/541>`_.
951
952* C++ types are automatically cast to Python types, e.g. when assigning
953 them as an attribute. For instance, the following is now legal:
954
955 .. code-block:: cpp
956
957 py::module m = /* ... */
958 m.attr("constant") = 123;
959
960 (Previously, a ``py::cast`` call was necessary to avoid a compilation error.)
961 `#551 <https://github.com/pybind/pybind11/pull/551>`_.
962
963* Redesigned ``pytest``-based test suite. `#321 <https://github.com/pybind/pybind11/pull/321>`_.
964
965* Instance tracking to detect reference leaks in test suite. `#324 <https://github.com/pybind/pybind11/pull/324>`_
966
967* pybind11 can now distinguish between multiple different instances that are
968 located at the same memory address, but which have different types.
969 `#329 <https://github.com/pybind/pybind11/pull/329>`_.
970
971* Improved logic in ``move`` return value policy.
972 `#510 <https://github.com/pybind/pybind11/pull/510>`_,
973 `#297 <https://github.com/pybind/pybind11/pull/297>`_.
974
975* Generalized unpacking API to permit calling Python functions from C++ using
976 notation such as ``foo(a1, a2, *args, "ka"_a=1, "kb"_a=2, **kwargs)``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
977
978* ``py::print()`` function whose behavior matches that of the native Python
979 ``print()`` function. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
980
981* Added ``py::dict`` keyword constructor:``auto d = dict("number"_a=42,
982 "name"_a="World");``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
983
984* Added ``py::str::format()`` method and ``_s`` literal: ``py::str s = "1 + 2
985 = {}"_s.format(3);``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
986
987* Added ``py::repr()`` function which is equivalent to Python's builtin
988 ``repr()``. `#333 <https://github.com/pybind/pybind11/pull/333>`_.
989
990* Improved construction and destruction logic for holder types. It is now
991 possible to reference instances with smart pointer holder types without
992 constructing the holder if desired. The ``PYBIND11_DECLARE_HOLDER_TYPE``
993 macro now accepts an optional second parameter to indicate whether the holder
994 type uses intrusive reference counting.
995 `#533 <https://github.com/pybind/pybind11/pull/533>`_ and
996 `#561 <https://github.com/pybind/pybind11/pull/561>`_.
997
998* Mapping a stateless C++ function to Python and back is now "for free" (i.e.
999 no extra indirections or argument conversion overheads). `rev. 954b79
1000 <https://github.com/pybind/pybind11/commit/954b79>`_.
1001
1002* Bindings for ``std::valarray<T>``.
1003 `#545 <https://github.com/pybind/pybind11/pull/545>`_.
1004
1005* Improved support for C++17 capable compilers.
1006 `#562 <https://github.com/pybind/pybind11/pull/562>`_.
1007
1008* Bindings for ``std::optional<t>``.
1009 `#475 <https://github.com/pybind/pybind11/pull/475>`_,
1010 `#476 <https://github.com/pybind/pybind11/pull/476>`_,
1011 `#479 <https://github.com/pybind/pybind11/pull/479>`_,
1012 `#499 <https://github.com/pybind/pybind11/pull/499>`_, and
1013 `#501 <https://github.com/pybind/pybind11/pull/501>`_.
1014
1015* ``stl_bind.h``: general improvements and support for ``std::map`` and
1016 ``std::unordered_map``.
1017 `#490 <https://github.com/pybind/pybind11/pull/490>`_,
1018 `#282 <https://github.com/pybind/pybind11/pull/282>`_,
1019 `#235 <https://github.com/pybind/pybind11/pull/235>`_.
1020
1021* The ``std::tuple``, ``std::pair``, ``std::list``, and ``std::vector`` type
1022 casters now accept any Python sequence type as input. `rev. 107285
1023 <https://github.com/pybind/pybind11/commit/107285>`_.
1024
1025* Improved CMake Python detection on multi-architecture Linux.
1026 `#532 <https://github.com/pybind/pybind11/pull/532>`_.
1027
1028* Infrastructure to selectively disable or enable parts of the automatically
1029 generated docstrings. `#486 <https://github.com/pybind/pybind11/pull/486>`_.
1030
1031* ``reference`` and ``reference_internal`` are now the default return value
1032 properties for static and non-static properties, respectively. `#473
1033 <https://github.com/pybind/pybind11/pull/473>`_. (the previous defaults
1034 were ``automatic``). `#473 <https://github.com/pybind/pybind11/pull/473>`_.
1035
1036* Support for ``std::unique_ptr`` with non-default deleters or no deleter at
1037 all (``py::nodelete``). `#384 <https://github.com/pybind/pybind11/pull/384>`_.
1038
Wenzel Jakob3c796712016-12-23 16:19:36 +01001039* Deprecated ``handle::call()`` method. The new syntax to call Python
1040 functions is simply ``handle()``. It can also be invoked explicitly via
Wenzel Jakobd3549d62016-12-23 16:01:04 +01001041 ``handle::operator<X>()``, where ``X`` is an optional return value policy.
1042
1043* Print more informative error messages when ``make_tuple()`` or ``cast()``
1044 fail. `#262 <https://github.com/pybind/pybind11/pull/262>`_.
1045
1046* Creation of holder types for classes deriving from
1047 ``std::enable_shared_from_this<>`` now also works for ``const`` values.
1048 `#260 <https://github.com/pybind/pybind11/pull/260>`_.
1049
1050* ``make_iterator()`` improvements for better compatibility with various
1051 types (now uses prefix increment operator); it now also accepts iterators
1052 with different begin/end types as long as they are equality comparable.
1053 `#247 <https://github.com/pybind/pybind11/pull/247>`_.
1054
1055* ``arg()`` now accepts a wider range of argument types for default values.
1056 `#244 <https://github.com/pybind/pybind11/pull/244>`_.
1057
1058* Support ``keep_alive`` where the nurse object may be ``None``. `#341
1059 <https://github.com/pybind/pybind11/pull/341>`_.
1060
1061* Added constructors for ``str`` and ``bytes`` from zero-terminated char
1062 pointers, and from char pointers and length. Added constructors for ``str``
1063 from ``bytes`` and for ``bytes`` from ``str``, which will perform UTF-8
1064 decoding/encoding as required.
1065
1066* Many other improvements of library internals without user-visible changes
1067
Wenzel Jakoba720a602016-07-12 18:02:13 +02001068
10691.8.1 (July 12, 2016)
1070----------------------
Wenzel Jakobc47d4982016-07-11 23:40:28 +02001071* Fixed a rare but potentially very severe issue when the garbage collector ran
1072 during pybind11 type creation.
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +02001073
Wenzel Jakobf9502152016-06-14 15:00:46 +020010741.8.0 (June 14, 2016)
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +02001075----------------------
1076* Redesigned CMake build system which exports a convenient
1077 ``pybind11_add_module`` function to parent projects.
1078* ``std::vector<>`` type bindings analogous to Boost.Python's ``indexing_suite``
1079* Transparent conversion of sparse and dense Eigen matrices and vectors (``eigen.h``)
1080* Added an ``ExtraFlags`` template argument to the NumPy ``array_t<>`` wrapper
1081 to disable an enforced cast that may lose precision, e.g. to create overloads
1082 for different precisions and complex vs real-valued matrices.
Wenzel Jakob3f200fa2016-05-17 15:35:29 +02001083* Prevent implicit conversion of floating point values to integral types in
1084 function arguments
Wenzel Jakob163ac2e2016-05-03 14:16:18 +02001085* Fixed incorrect default return value policy for functions returning a shared
1086 pointer
Wenzel Jakob38d8b8c2016-05-31 09:53:28 +02001087* Don't allow registering a type via ``class_`` twice
Wenzel Jakob163ac2e2016-05-03 14:16:18 +02001088* Don't allow casting a ``None`` value into a C++ lvalue reference
1089* Fixed a crash in ``enum_::operator==`` that was triggered by the ``help()`` command
1090* Improved detection of whether or not custom C++ types can be copy/move-constructed
1091* Extended ``str`` type to also work with ``bytes`` instances
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +02001092* Added a ``"name"_a`` user defined string literal that is equivalent to ``py::arg("name")``.
1093* When specifying function arguments via ``py::arg``, the test that verifies
1094 the number of arguments now runs at compile time.
Wenzel Jakob163ac2e2016-05-03 14:16:18 +02001095* Added ``[[noreturn]]`` attribute to ``pybind11_fail()`` to quench some
1096 compiler warnings
Wenzel Jakob86d825f2016-05-26 13:19:27 +02001097* List function arguments in exception text when the dispatch code cannot find
1098 a matching overload
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +02001099* Added ``PYBIND11_OVERLOAD_NAME`` and ``PYBIND11_OVERLOAD_PURE_NAME`` macros which
Wenzel Jakobf9502152016-06-14 15:00:46 +02001100 can be used to override virtual methods whose name differs in C++ and Python
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +02001101 (e.g. ``__call__`` and ``operator()``)
Wenzel Jakob163ac2e2016-05-03 14:16:18 +02001102* Various minor ``iterator`` and ``make_iterator()`` improvements
Wenzel Jakob86d825f2016-05-26 13:19:27 +02001103* Transparently support ``__bool__`` on Python 2.x and Python 3.x
1104* Fixed issue with destructor of unpickled object not being called
Wenzel Jakob163ac2e2016-05-03 14:16:18 +02001105* Minor CMake build system improvements on Windows
Wenzel Jakob86d825f2016-05-26 13:19:27 +02001106* New ``pybind11::args`` and ``pybind11::kwargs`` types to create functions which
1107 take an arbitrary number of arguments and keyword arguments
1108* New syntax to call a Python function from C++ using ``*args`` and ``*kwargs``
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +02001109* The functions ``def_property_*`` now correctly process docstring arguments (these
1110 formerly caused a segmentation fault)
1111* Many ``mkdoc.py`` improvements (enumerations, template arguments, ``DOC()``
1112 macro accepts more arguments)
1113* Cygwin support
1114* Documentation improvements (pickling support, ``keep_alive``, macro usage)
Wenzel Jakobc4d7ccd2016-04-30 22:00:44 +02001115
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +020011161.7 (April 30, 2016)
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +02001117----------------------
Wenzel Jakob1ac22e32016-04-25 23:25:40 +02001118* Added a new ``move`` return value policy that triggers C++11 move semantics.
Wenzel Jakobdd7ec342016-04-29 10:06:24 +02001119 The automatic return value policy falls back to this case whenever a rvalue
Wenzel Jakob1ac22e32016-04-25 23:25:40 +02001120 reference is encountered
Wenzel Jakobe84f5572016-04-26 23:19:19 +02001121* Significantly more general GIL state routines that are used instead of
1122 Python's troublesome ``PyGILState_Ensure`` and ``PyGILState_Release`` API
Wenzel Jakobdd7ec342016-04-29 10:06:24 +02001123* Redesign of opaque types that drastically simplifies their usage
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +02001124* Extended ability to pass values of type ``[const] void *``
Wenzel Jakob1ac22e32016-04-25 23:25:40 +02001125* ``keep_alive`` fix: don't fail when there is no patient
Wenzel Jakobdd7ec342016-04-29 10:06:24 +02001126* ``functional.h``: acquire the GIL before calling a Python function
Wenzel Jakob1ac22e32016-04-25 23:25:40 +02001127* Added Python RAII type wrappers ``none`` and ``iterable``
1128* Added ``*args`` and ``*kwargs`` pass-through parameters to
1129 ``pybind11.get_include()`` function
Wenzel Jakobdd7ec342016-04-29 10:06:24 +02001130* Iterator improvements and fixes
1131* Documentation on return value policies and opaque types improved
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +02001132
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +020011331.6 (April 30, 2016)
1134----------------------
1135* Skipped due to upload to PyPI gone wrong and inability to recover
1136 (https://github.com/pypa/packaging-problems/issues/74)
1137
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +020011381.5 (April 21, 2016)
Wenzel Jakob2c5d5602016-04-11 18:46:11 +02001139----------------------
Wenzel Jakobc79dbe42016-04-17 21:54:31 +02001140* For polymorphic types, use RTTI to try to return the closest type registered with pybind11
Wenzel Jakobd7efa4f2016-04-13 13:45:09 +02001141* Pickling support for serializing and unserializing C++ instances to a byte stream in Python
Wenzel Jakobb2825952016-04-13 23:33:00 +02001142* Added a convenience routine ``make_iterator()`` which turns a range indicated
1143 by a pair of C++ iterators into a iterable Python object
1144* Added ``len()`` and a variadic ``make_tuple()`` function
Wenzel Jakobb2b44a92016-04-15 17:50:40 +02001145* Addressed a rare issue that could confuse the current virtual function
1146 dispatcher and another that could lead to crashes in multi-threaded
1147 applications
Wenzel Jakobb2825952016-04-13 23:33:00 +02001148* Added a ``get_include()`` function to the Python module that returns the path
1149 of the directory containing the installed pybind11 header files
Wenzel Jakob1c329aa2016-04-13 02:37:36 +02001150* Documentation improvements: import issues, symbol visibility, pickling, limitations
Wenzel Jakobdbe43ff2016-04-21 12:21:14 +02001151* Added casting support for ``std::reference_wrapper<>``
Wenzel Jakob2c5d5602016-04-11 18:46:11 +02001152
Wenzel Jakob33c2a042016-04-07 09:06:49 +020011531.4 (April 7, 2016)
Wenzel Jakobd2385e82016-03-08 18:04:43 +01001154--------------------------
Wenzel Jakob81dfd2c2016-03-08 19:40:32 +01001155* Transparent type conversion for ``std::wstring`` and ``wchar_t``
Wenzel Jakob0e6ca592016-04-07 08:49:37 +02001156* Allow passing ``nullptr``-valued strings
Wenzel Jakob34116732016-04-06 17:55:41 +02001157* Transparent passing of ``void *`` pointers using capsules
Wenzel Jakob0e6ca592016-04-07 08:49:37 +02001158* Transparent support for returning values wrapped in ``std::unique_ptr<>``
Wenzel Jakob4e455dd2016-03-09 16:38:28 +01001159* Improved docstring generation for compatibility with Sphinx
Wenzel Jakob34116732016-04-06 17:55:41 +02001160* Nicer debug error message when default parameter construction fails
1161* Support for "opaque" types that bypass the transparent conversion layer for STL containers
1162* Redesigned type casting interface to avoid ambiguities that could occasionally cause compiler errors
Wenzel Jakob2c5d5602016-04-11 18:46:11 +02001163* Redesigned property implementation; fixes crashes due to an unfortunate default return value policy
Wenzel Jakob4e455dd2016-03-09 16:38:28 +01001164* Anaconda package generation support
Wenzel Jakobd2385e82016-03-08 18:04:43 +01001165
11661.3 (March 8, 2016)
Wenzel Jakob8ed28082016-02-07 17:32:37 +01001167--------------------------
Wenzel Jakobcf2b87a2016-02-22 17:32:44 +01001168
1169* Added support for the Intel C++ compiler (v15+)
1170* Added support for the STL unordered set/map data structures
Wenzel Jakobd2385e82016-03-08 18:04:43 +01001171* Added support for the STL linked list data structure
Wenzel Jakobcf2b87a2016-02-22 17:32:44 +01001172* NumPy-style broadcasting support in ``pybind11::vectorize``
Wenzel Jakob2c5d5602016-04-11 18:46:11 +02001173* pybind11 now displays more verbose error messages when ``arg::operator=()`` fails
Wenzel Jakobd2385e82016-03-08 18:04:43 +01001174* pybind11 internal data structures now live in a version-dependent namespace to avoid ABI issues
1175* Many, many bugfixes involving corner cases and advanced usage
Wenzel Jakob8ed28082016-02-07 17:32:37 +01001176
11771.2 (February 7, 2016)
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001178--------------------------
Wenzel Jakob48548ea2016-01-17 22:36:44 +01001179
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001180* Optional: efficient generation of function signatures at compile time using C++14
Wenzel Jakob48548ea2016-01-17 22:36:44 +01001181* Switched to a simpler and more general way of dealing with function default
1182 arguments. Unused keyword arguments in function calls are now detected and
1183 cause errors as expected
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001184* New ``keep_alive`` call policy analogous to Boost.Python's ``with_custodian_and_ward``
Wenzel Jakob48548ea2016-01-17 22:36:44 +01001185* New ``pybind11::base<>`` attribute to indicate a subclass relationship
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001186* Improved interface for RAII type wrappers in ``pytypes.h``
1187* Use RAII type wrappers consistently within pybind11 itself. This
1188 fixes various potential refcount leaks when exceptions occur
Wenzel Jakob2c5d5602016-04-11 18:46:11 +02001189* Added new ``bytes`` RAII type wrapper (maps to ``string`` in Python 2.7)
Wenzel Jakob48548ea2016-01-17 22:36:44 +01001190* Made handle and related RAII classes const correct, using them more
1191 consistently everywhere now
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001192* Got rid of the ugly ``__pybind11__`` attributes on the Python side---they are
1193 now stored in a C++ hash table that is not visible in Python
1194* Fixed refcount leaks involving NumPy arrays and bound functions
1195* Vastly improved handling of shared/smart pointers
1196* Removed an unnecessary copy operation in ``pybind11::vectorize``
1197* Fixed naming clashes when both pybind11 and NumPy headers are included
1198* Added conversions for additional exception types
Wenzel Jakob48548ea2016-01-17 22:36:44 +01001199* Documentation improvements (using multiple extension modules, smart pointers,
1200 other minor clarifications)
Wenzel Jakob61587162016-01-18 22:38:52 +01001201* unified infrastructure for parsing variadic arguments in ``class_`` and cpp_function
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001202* Fixed license text (was: ZLIB, should have been: 3-clause BSD)
1203* Python 3.2 compatibility
Wenzel Jakobcd4e6ae2016-01-29 11:48:40 +01001204* Fixed remaining issues when accessing types in another plugin module
1205* Added enum comparison and casting methods
1206* Improved SFINAE-based detection of whether types are copy-constructible
1207* Eliminated many warnings about unused variables and the use of ``offsetof()``
Wenzel Jakob8ed28082016-02-07 17:32:37 +01001208* Support for ``std::array<>`` conversions
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001209
12101.1 (December 7, 2015)
1211--------------------------
1212
1213* Documentation improvements (GIL, wrapping functions, casting, fixed many typos)
1214* Generalized conversion of integer types
1215* Improved support for casting function objects
1216* Improved support for ``std::shared_ptr<>`` conversions
1217* Initial support for ``std::set<>`` conversions
1218* Fixed type resolution issue for types defined in a separate plugin module
1219* Cmake build system improvements
1220* Factored out generic functionality to non-templated code (smaller code size)
1221* Added a code size / compile time benchmark vs Boost.Python
1222* Added an appveyor CI script
1223
12241.0 (October 15, 2015)
1225------------------------
1226* Initial release