blob: 23d5563709568af1003118e71218b389094b2425 [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 Jakobd405b1b2017-03-22 22:20:07 +01009v2.2.0 (Not yet released)
10-----------------------------------------------------
11
Dean Moldovandb46a892017-08-13 22:25:15 +020012* Support for embedding the Python interpreter. See the
13 :doc:`documentation page </advanced/embedding>` for a
14 full overview of the new features.
15 `#774 <https://github.com/pybind/pybind11/pull/774>`_,
16 `#889 <https://github.com/pybind/pybind11/pull/889>`_,
17 `#892 <https://github.com/pybind/pybind11/pull/892>`_,
18 `#920 <https://github.com/pybind/pybind11/pull/920>`_.
19
20 .. code-block:: cpp
21
22 #include <pybind11/embed.h>
23 namespace py = pybind11;
24
25 int main() {
26 py::scoped_interpreter guard{}; // start the interpreter and keep it alive
27
28 py::print("Hello, World!"); // use the Python API
29 }
30
31* Support for inheriting from multiple C++ bases in Python.
32 `#693 <https://github.com/pybind/pybind11/pull/693>`_.
33
34 .. code-block:: python
35
36 from cpp_module import CppBase1, CppBase2
37
38 class PyDerived(CppBase1, CppBase2):
39 def __init__(self):
40 CppBase1.__init__(self) # C++ bases must be initialized explicitly
41 CppBase2.__init__(self)
42
43* ``PYBIND11_MODULE`` is now the preferred way to create module entry points.
44 ``PYBIND11_PLUGIN`` is deprecated. See :ref:`macros` for details.
45 `#879 <https://github.com/pybind/pybind11/pull/879>`_.
46
47 .. code-block:: cpp
48
49 // new
50 PYBIND11_MODULE(example, m) {
51 m.def("add", [](int a, int b) { return a + b; });
52 }
53
54 // old
55 PYBIND11_PLUGIN(example) {
56 py::module m("example");
57 m.def("add", [](int a, int b) { return a + b; });
58 return m.ptr();
59 }
60
61* pybind11's headers and build system now more strictly enforce hidden symbol
62 visibility for extension modules. This should be seamless for most users,
Dean Moldovan1fb9df62017-08-18 19:26:49 +020063 but see the :doc:`upgrade` if you use a custom build system.
64 `#995 <https://github.com/pybind/pybind11/pull/995>`_.
Dean Moldovandb46a892017-08-13 22:25:15 +020065
66* Support for ``py::module_local`` types which allow multiple modules to
67 export the same C++ types without conflicts. This is useful for opaque
68 types like ``std::vector<int>``. ``py::bind_vector`` and ``py::bind_map``
69 now default to ``py::module_local`` if their elements are builtins or
70 local types. See :ref:`module_local` for details.
71 `#949 <https://github.com/pybind/pybind11/pull/949>`_,
72 `#981 <https://github.com/pybind/pybind11/pull/981>`_,
73 `#995 <https://github.com/pybind/pybind11/pull/995>`_,
74 `#997 <https://github.com/pybind/pybind11/pull/997>`_.
75
76* Custom constructors can now be added very easily using lambdas or factory
77 functions which return a class instance by value, pointer or holder. This
78 supersedes the old placement-new ``__init__`` technique.
79 See :ref:`custom_constructors` for details.
Matthias Hochstegere8b50742017-08-23 16:08:13 +020080 `#805 <https://github.com/pybind/pybind11/pull/805>`_.
Dean Moldovandb46a892017-08-13 22:25:15 +020081
82 .. code-block:: cpp
83
84 struct Example {
85 Example(std::string);
86 };
87
88 py::class_<Example>(m, "Example")
89 .def(py::init<std::string>()) // existing constructor
90 .def(py::init([](int n) { // custom constructor
91 return std::make_unique<Example>(std::to_string(n));
92 }));
93
94* Builtin support for converting C++17 standard library types and general
95 conversion improvements:
96
97 1. C++17 ``std::variant`` is supported right out of the box. C++11/14
98 equivalents (e.g. ``boost::variant``) can also be added with a simple
99 user-defined specialization. See :ref:`cpp17_container_casters` for details.
100 `#811 <https://github.com/pybind/pybind11/pull/811>`_,
101 `#845 <https://github.com/pybind/pybind11/pull/845>`_,
102 `#989 <https://github.com/pybind/pybind11/pull/989>`_.
103
104 2. Out-of-the-box support for C++17 ``std::string_view``.
105 `#906 <https://github.com/pybind/pybind11/pull/906>`_.
106
107 3. Improved compatibility of the builtin ``optional`` converter.
108 `#874 <https://github.com/pybind/pybind11/pull/874>`_.
109
110 4. The ``bool`` converter now accepts ``numpy.bool_`` and types which
111 define ``__bool__`` (Python 3.x) or ``__nonzero__`` (Python 2.7).
112 `#925 <https://github.com/pybind/pybind11/pull/925>`_.
113
114 5. C++-to-Python casters are now more efficient and move elements out
115 of rvalue containers whenever possible.
116 `#851 <https://github.com/pybind/pybind11/pull/851>`_,
117 `#936 <https://github.com/pybind/pybind11/pull/936>`_,
118 `#938 <https://github.com/pybind/pybind11/pull/938>`_.
119
120 6. Fixed ``bytes`` to ``std::string/char*`` conversion on Python 3.
121 `#817 <https://github.com/pybind/pybind11/pull/817>`_.
122
123 7. Fixed lifetime of temporary C++ objects created in Python-to-C++ conversions.
124 `#924 <https://github.com/pybind/pybind11/pull/924>`_.
125
Henry Schreiner8b405052017-08-24 17:12:43 -0700126* Scope guard call policy for RAII types, e.g. ``py::call_guard<py::gil_scoped_release>()``,
127 ``py::call_guard<py::scoped_ostream_redirect>()``. See :ref:`call_policies` for details.
Dean Moldovandb46a892017-08-13 22:25:15 +0200128 `#740 <https://github.com/pybind/pybind11/pull/740>`_.
129
Henry Schreiner8b405052017-08-24 17:12:43 -0700130* Utility for redirecting C++ streams to Python (e.g. ``std::cout`` ->
131 ``sys.stdout``). Scope guard ``py::scoped_ostream_redirect`` in C++ and
132 a context manager in Python. See :ref:`ostream_redirect`.
133 `#1009 <https://github.com/pybind/pybind11/pull/1009>`_.
134
Dean Moldovandb46a892017-08-13 22:25:15 +0200135* Improved handling of types and exceptions across module boundaries.
136 `#915 <https://github.com/pybind/pybind11/pull/915>`_,
137 `#951 <https://github.com/pybind/pybind11/pull/951>`_,
138 `#995 <https://github.com/pybind/pybind11/pull/995>`_.
139
140* Fixed destruction order of ``py::keep_alive`` nurse/patient objects
141 in reference cycles.
142 `#856 <https://github.com/pybind/pybind11/pull/856>`_.
143
144* Numpy and buffer protocol related improvements:
145
146 1. Support for negative strides in Python buffer objects/numpy arrays. This
147 required changing integers from unsigned to signed for the related C++ APIs.
148 Note: If you have compiler warnings enabled, you may notice some new conversion
149 warnings after upgrading. These can be resolved with ``static_cast``.
150 `#782 <https://github.com/pybind/pybind11/pull/782>`_.
151
152 2. Support ``std::complex`` and arrays inside ``PYBIND11_NUMPY_DTYPE``.
153 `#831 <https://github.com/pybind/pybind11/pull/831>`_,
154 `#832 <https://github.com/pybind/pybind11/pull/832>`_.
155
156 3. Support for constructing ``py::buffer_info`` and ``py::arrays`` using
157 arbitrary containers or iterators instead of requiring a ``std::vector``.
158 `#788 <https://github.com/pybind/pybind11/pull/788>`_,
159 `#822 <https://github.com/pybind/pybind11/pull/822>`_,
160 `#860 <https://github.com/pybind/pybind11/pull/860>`_.
161
162 4. Explicitly check numpy version and require >= 1.7.0.
163 `#819 <https://github.com/pybind/pybind11/pull/819>`_.
164
165* Support for allowing/prohibiting ``None`` for specific arguments and improved
166 ``None`` overload resolution order. See :ref:`none_arguments` for details.
167 `#843 <https://github.com/pybind/pybind11/pull/843>`_.
168 `#859 <https://github.com/pybind/pybind11/pull/859>`_.
169
170* Added ``py::exec()`` as a shortcut for ``py::eval<py::eval_statements>()``
171 and support for C++11 raw string literals as input. See :ref:`eval`.
172 `#766 <https://github.com/pybind/pybind11/pull/766>`_,
173 `#827 <https://github.com/pybind/pybind11/pull/827>`_.
174
175* ``py::vectorize()`` ignores non-vectorizable arguments and supports
176 member functions.
177 `#762 <https://github.com/pybind/pybind11/pull/762>`_.
178
179* Support for bound methods as callbacks (``pybind11/functional.h``).
180 `#815 <https://github.com/pybind/pybind11/pull/815>`_.
181
182* Allow aliasing pybind11 methods: ``cls.attr("foo") = cls.attr("bar")``.
183 `#802 <https://github.com/pybind/pybind11/pull/802>`_.
184
185* Don't allow mixed static/non-static overloads.
186 `#804 <https://github.com/pybind/pybind11/pull/804>`_.
187
188* Fixed overriding static properties in derived classes.
189 `#784 <https://github.com/pybind/pybind11/pull/784>`_.
190
191* Improved deduction of member function of derived class when the bases
192 isn't registered with pybind11.
193 `#855 <https://github.com/pybind/pybind11/pull/855>`_.
194
195 .. code-block:: cpp
196
197 struct Base {
198 int foo() { return 42; }
199 }
200
201 struct Derived : Base {}
202
203 // Now works, but previously required also binding `Base`
204 py::class_<Derived>(m, "Derived")
205 .def("foo", &Derived::foo); // function is actually from `Base`
206
Wenzel Jakobb12a9d62017-08-23 16:30:56 +0200207* The implementation of ``py::init<>`` now uses C++11 brace initialization
208 syntax to construct instances, which permits binding implicit constructors of
209 aggregate types. `#1015 <https://github.com/pybind/pybind11/pull/1015>`_.
210
211 .. code-block:: cpp
212
213 struct Aggregate {
214 int a;
215 std::string b;
216 };
217
218 py::class_<Aggregate>(m, "Aggregate")
219 .def(py::init<int, const std::string &>());
220
Dean Moldovandb46a892017-08-13 22:25:15 +0200221* Fixed issues with multiple inheritance with offset base/derived pointers.
222 `#812 <https://github.com/pybind/pybind11/pull/812>`_,
223 `#866 <https://github.com/pybind/pybind11/pull/866>`_,
224 `#960 <https://github.com/pybind/pybind11/pull/960>`_.
225
226* Improved support for the ``/std:c++14`` and ``/std:c++latest`` modes
227 on MSVC 2017.
228 `#841 <https://github.com/pybind/pybind11/pull/841>`_,
229 `#999 <https://github.com/pybind/pybind11/pull/999>`_.
230
231* Fixed detection of private operator new on MSVC.
232 `#893 <https://github.com/pybind/pybind11/pull/893>`_,
233 `#918 <https://github.com/pybind/pybind11/pull/918>`_.
234
235* Intel C++ compiler compatibility fixes.
236 `#937 <https://github.com/pybind/pybind11/pull/937>`_.
237
238* Fixed implicit conversion of `py::enum_` to integer types on Python 2.7.
239 `#821 <https://github.com/pybind/pybind11/pull/821>`_.
240
241* Fixed ``__truediv__`` on Python 2 and ``__itruediv__`` on Python 3.
242 `#867 <https://github.com/pybind/pybind11/pull/867>`_.
243
244* ``py::capsule`` objects now support the ``name`` attribute. This is useful
245 for interfacing with ``scipy.LowLevelCallable``.
246 `#902 <https://github.com/pybind/pybind11/pull/902>`_.
247
248* Fixed ``py::make_iterator``'s ``__next__()`` for past-the-end calls.
249 `#897 <https://github.com/pybind/pybind11/pull/897>`_.
250
251* Added ``error_already_set::matches()`` for checking Python exceptions.
252 `#772 <https://github.com/pybind/pybind11/pull/772>`_.
253
254* Deprecated ``py::error_already_set::clear()``. It's no longer needed
255 following a simplification of the ``py::error_already_set`` class.
256 `#954 <https://github.com/pybind/pybind11/pull/954>`_.
257
258* Deprecated ``py::handle::operator==()`` in favor of ``py::handle::is()``
259 `#825 <https://github.com/pybind/pybind11/pull/825>`_.
260
261* Deprecated ``py::object::borrowed``/``py::object::stolen``.
262 Use ``py::object::borrowed_t{}``/``py::object::stolen_t{}`` instead.
263 `#771 <https://github.com/pybind/pybind11/pull/771>`_.
264
265* Additional compile-time and run-time error checking and more informative messages.
266 `#786 <https://github.com/pybind/pybind11/pull/786>`_,
267 `#794 <https://github.com/pybind/pybind11/pull/794>`_,
268 `#803 <https://github.com/pybind/pybind11/pull/803>`_.
269
270* Various minor improvements and fixes.
271 `#764 <https://github.com/pybind/pybind11/pull/764>`_,
272 `#791 <https://github.com/pybind/pybind11/pull/791>`_,
273 `#795 <https://github.com/pybind/pybind11/pull/795>`_,
274 `#840 <https://github.com/pybind/pybind11/pull/840>`_,
275 `#844 <https://github.com/pybind/pybind11/pull/844>`_,
276 `#846 <https://github.com/pybind/pybind11/pull/846>`_,
277 `#849 <https://github.com/pybind/pybind11/pull/849>`_,
278 `#858 <https://github.com/pybind/pybind11/pull/858>`_,
279 `#862 <https://github.com/pybind/pybind11/pull/862>`_,
280 `#871 <https://github.com/pybind/pybind11/pull/871>`_,
281 `#872 <https://github.com/pybind/pybind11/pull/872>`_,
282 `#881 <https://github.com/pybind/pybind11/pull/881>`_,
283 `#888 <https://github.com/pybind/pybind11/pull/888>`_,
284 `#899 <https://github.com/pybind/pybind11/pull/899>`_,
285 `#928 <https://github.com/pybind/pybind11/pull/928>`_,
286 `#931 <https://github.com/pybind/pybind11/pull/931>`_,
287 `#944 <https://github.com/pybind/pybind11/pull/944>`_,
288 `#950 <https://github.com/pybind/pybind11/pull/950>`_,
289 `#952 <https://github.com/pybind/pybind11/pull/952>`_,
290 `#962 <https://github.com/pybind/pybind11/pull/962>`_,
291 `#965 <https://github.com/pybind/pybind11/pull/965>`_,
292 `#970 <https://github.com/pybind/pybind11/pull/970>`_,
293 `#979 <https://github.com/pybind/pybind11/pull/979>`_,
294 `#978 <https://github.com/pybind/pybind11/pull/978>`_,
Wenzel Jakoba1041192017-08-28 16:35:32 +0200295 `#986 <https://github.com/pybind/pybind11/pull/986>`_,
296 `#1037 <https://github.com/pybind/pybind11/pull/1037>`_.
Dean Moldovandb46a892017-08-13 22:25:15 +0200297
298* Testing improvements.
299 `#798 <https://github.com/pybind/pybind11/pull/798>`_,
300 `#882 <https://github.com/pybind/pybind11/pull/882>`_,
301 `#898 <https://github.com/pybind/pybind11/pull/898>`_,
302 `#900 <https://github.com/pybind/pybind11/pull/900>`_,
303 `#921 <https://github.com/pybind/pybind11/pull/921>`_,
304 `#923 <https://github.com/pybind/pybind11/pull/923>`_,
305 `#963 <https://github.com/pybind/pybind11/pull/963>`_.
306
Wenzel Jakobdb200952017-04-07 02:03:46 +0200307v2.1.1 (April 7, 2017)
308-----------------------------------------------------
309
310* Fixed minimum version requirement for MSVC 2015u3
311 `#773 <https://github.com/pybind/pybind11/pull/773>`_.
312
Wenzel Jakobd405b1b2017-03-22 22:20:07 +0100313v2.1.0 (March 22, 2017)
Wenzel Jakoba9730be2017-01-06 14:18:44 +0100314-----------------------------------------------------
315
Wenzel Jakob62e5fef2017-03-22 22:07:45 +0100316* pybind11 now performs function overload resolution in two phases. The first
317 phase only considers exact type matches, while the second allows for implicit
318 conversions to take place. A special ``noconvert()`` syntax can be used to
319 completely disable implicit conversions for specific arguments.
320 `#643 <https://github.com/pybind/pybind11/pull/643>`_,
321 `#634 <https://github.com/pybind/pybind11/pull/634>`_,
322 `#650 <https://github.com/pybind/pybind11/pull/650>`_.
323
324* Fixed a regression where static properties no longer worked with classes
325 using multiple inheritance. The ``py::metaclass`` attribute is no longer
326 necessary (and deprecated as of this release) when binding classes with
327 static properties.
328 `#679 <https://github.com/pybind/pybind11/pull/679>`_,
329
330* Classes bound using ``pybind11`` can now use custom metaclasses.
331 `#679 <https://github.com/pybind/pybind11/pull/679>`_,
332
333* ``py::args`` and ``py::kwargs`` can now be mixed with other positional
334 arguments when binding functions using pybind11.
335 `#611 <https://github.com/pybind/pybind11/pull/611>`_.
336
337* Improved support for C++11 unicode string and character types; added
338 extensive documentation regarding pybind11's string conversion behavior.
339 `#624 <https://github.com/pybind/pybind11/pull/624>`_,
340 `#636 <https://github.com/pybind/pybind11/pull/636>`_,
341 `#715 <https://github.com/pybind/pybind11/pull/715>`_.
342
343* pybind11 can now avoid expensive copies when converting Eigen arrays to NumPy
344 arrays (and vice versa). `#610 <https://github.com/pybind/pybind11/pull/610>`_.
345
346* The "fast path" in ``py::vectorize`` now works for any full-size group of C or
347 F-contiguous arrays. The non-fast path is also faster since it no longer performs
348 copies of the input arguments (except when type conversions are necessary).
349 `#610 <https://github.com/pybind/pybind11/pull/610>`_.
350
351* Added fast, unchecked access to NumPy arrays via a proxy object.
352 `#746 <https://github.com/pybind/pybind11/pull/746>`_.
353
Wenzel Jakob0d929382017-03-22 22:52:29 +0100354* Transparent support for class-specific ``operator new`` and
Wenzel Jakob62e5fef2017-03-22 22:07:45 +0100355 ``operator delete`` implementations.
356 `#755 <https://github.com/pybind/pybind11/pull/755>`_.
357
358* Slimmer and more efficient STL-compatible iterator interface for sequence types.
359 `#662 <https://github.com/pybind/pybind11/pull/662>`_.
360
361* Improved custom holder type support.
362 `#607 <https://github.com/pybind/pybind11/pull/607>`_.
363
364* ``nullptr`` to ``None`` conversion fixed in various builtin type casters.
365 `#732 <https://github.com/pybind/pybind11/pull/732>`_.
366
367* ``enum_`` now exposes its members via a special ``__members__`` attribute.
368 `#666 <https://github.com/pybind/pybind11/pull/666>`_.
369
370* ``std::vector`` bindings created using ``stl_bind.h`` can now optionally
371 implement the buffer protocol. `#488 <https://github.com/pybind/pybind11/pull/488>`_.
372
373* Automated C++ reference documentation using doxygen and breathe.
374 `#598 <https://github.com/pybind/pybind11/pull/598>`_.
375
376* Added minimum compiler version assertions.
377 `#727 <https://github.com/pybind/pybind11/pull/727>`_.
378
379* Improved compatibility with C++1z.
380 `#677 <https://github.com/pybind/pybind11/pull/677>`_.
381
382* Improved ``py::capsule`` API. Can be used to implement cleanup
383 callbacks that are involved at module destruction time.
384 `#752 <https://github.com/pybind/pybind11/pull/752>`_.
385
386* Various minor improvements and fixes.
387 `#595 <https://github.com/pybind/pybind11/pull/595>`_,
388 `#588 <https://github.com/pybind/pybind11/pull/588>`_,
389 `#589 <https://github.com/pybind/pybind11/pull/589>`_,
390 `#603 <https://github.com/pybind/pybind11/pull/603>`_,
391 `#619 <https://github.com/pybind/pybind11/pull/619>`_,
392 `#648 <https://github.com/pybind/pybind11/pull/648>`_,
393 `#695 <https://github.com/pybind/pybind11/pull/695>`_,
394 `#720 <https://github.com/pybind/pybind11/pull/720>`_,
395 `#723 <https://github.com/pybind/pybind11/pull/723>`_,
396 `#729 <https://github.com/pybind/pybind11/pull/729>`_,
397 `#724 <https://github.com/pybind/pybind11/pull/724>`_,
398 `#742 <https://github.com/pybind/pybind11/pull/742>`_,
399 `#753 <https://github.com/pybind/pybind11/pull/753>`_.
Wenzel Jakoba9730be2017-01-06 14:18:44 +0100400
Wenzel Jakobf8dafe92017-01-04 15:09:49 +0100401v2.0.1 (Jan 4, 2017)
402-----------------------------------------------------
403
404* Fix pointer to reference error in type_caster on MSVC
405 `#583 <https://github.com/pybind/pybind11/pull/583>`_.
406
407* Fixed a segmentation in the test suite due to a typo
408 `cd7eac <https://github.com/pybind/pybind11/commit/cd7eac>`_.
409
Wenzel Jakobe33ef9c2017-01-01 13:55:06 +0100410v2.0.0 (Jan 1, 2017)
Wenzel Jakobed52f462016-12-26 13:18:26 +0100411-----------------------------------------------------
412
413* Fixed a reference counting regression affecting types with custom metaclasses
414 (introduced in v2.0.0-rc1).
415 `#571 <https://github.com/pybind/pybind11/pull/571>`_.
416
417* Quenched a CMake policy warning.
418 `#570 <https://github.com/pybind/pybind11/pull/570>`_.
419
Wenzel Jakobe33ef9c2017-01-01 13:55:06 +0100420v2.0.0-rc1 (Dec 23, 2016)
Wenzel Jakobf88af0c2016-06-22 13:52:31 +0200421-----------------------------------------------------
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200422
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100423The pybind11 developers are excited to issue a release candidate of pybind11
424with a subsequent v2.0.0 release planned in early January next year.
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200425
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100426An incredible amount of effort by went into pybind11 over the last ~5 months,
427leading to a release that is jam-packed with exciting new features and numerous
Wenzel Jakobf8dafe92017-01-04 15:09:49 +0100428usability improvements. The following list links PRs or individual commits
Wenzel Jakobed52f462016-12-26 13:18:26 +0100429whenever applicable.
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100430
431Happy Christmas!
432
433* Support for binding C++ class hierarchies that make use of multiple
434 inheritance. `#410 <https://github.com/pybind/pybind11/pull/410>`_.
435
436* PyPy support: pybind11 now supports nightly builds of PyPy and will
437 interoperate with the future 5.7 release. No code changes are necessary,
438 everything "just" works as usual. Note that we only target the Python 2.7
439 branch for now; support for 3.x will be added once its ``cpyext`` extension
Wenzel Jakobed52f462016-12-26 13:18:26 +0100440 support catches up. A few minor features remain unsupported for the time
441 being (notably dynamic attributes in custom types).
442 `#527 <https://github.com/pybind/pybind11/pull/527>`_.
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100443
444* Significant work on the documentation -- in particular, the monolitic
445 ``advanced.rst`` file was restructured into a easier to read hierarchical
446 organization. `#448 <https://github.com/pybind/pybind11/pull/448>`_.
447
448* Many NumPy-related improvements:
449
450 1. Object-oriented API to access and modify NumPy ``ndarray`` instances,
451 replicating much of the corresponding NumPy C API functionality.
452 `#402 <https://github.com/pybind/pybind11/pull/402>`_.
453
454 2. NumPy array ``dtype`` array descriptors are now first-class citizens and
455 are exposed via a new class ``py::dtype``.
456
457 3. Structured dtypes can be registered using the ``PYBIND11_NUMPY_DTYPE()``
458 macro. Special ``array`` constructors accepting dtype objects were also
459 added.
460
461 One potential caveat involving this change: format descriptor strings
462 should now be accessed via ``format_descriptor::format()`` (however, for
463 compatibility purposes, the old syntax ``format_descriptor::value`` will
464 still work for non-structured data types). `#308
465 <https://github.com/pybind/pybind11/pull/308>`_.
466
467 4. Further improvements to support structured dtypes throughout the system.
468 `#472 <https://github.com/pybind/pybind11/pull/472>`_,
469 `#474 <https://github.com/pybind/pybind11/pull/474>`_,
470 `#459 <https://github.com/pybind/pybind11/pull/459>`_,
471 `#453 <https://github.com/pybind/pybind11/pull/453>`_,
472 `#452 <https://github.com/pybind/pybind11/pull/452>`_, and
473 `#505 <https://github.com/pybind/pybind11/pull/505>`_.
474
475 5. Fast access operators. `#497 <https://github.com/pybind/pybind11/pull/497>`_.
476
477 6. Constructors for arrays whose storage is owned by another object.
478 `#440 <https://github.com/pybind/pybind11/pull/440>`_.
479
480 7. Added constructors for ``array`` and ``array_t`` explicitly accepting shape
481 and strides; if strides are not provided, they are deduced assuming
482 C-contiguity. Also added simplified constructors for 1-dimensional case.
483
484 8. Added buffer/NumPy support for ``char[N]`` and ``std::array<char, N>`` types.
485
486 9. Added ``memoryview`` wrapper type which is constructible from ``buffer_info``.
487
488* Eigen: many additional conversions and support for non-contiguous
489 arrays/slices.
490 `#427 <https://github.com/pybind/pybind11/pull/427>`_,
491 `#315 <https://github.com/pybind/pybind11/pull/315>`_,
492 `#316 <https://github.com/pybind/pybind11/pull/316>`_,
493 `#312 <https://github.com/pybind/pybind11/pull/312>`_, and
494 `#267 <https://github.com/pybind/pybind11/pull/267>`_
495
496* Incompatible changes in ``class_<...>::class_()``:
497
498 1. Declarations of types that provide access via the buffer protocol must
499 now include the ``py::buffer_protocol()`` annotation as an argument to
500 the ``class_`` constructor.
501
502 2. Declarations of types that require a custom metaclass (i.e. all classes
503 which include static properties via commands such as
504 ``def_readwrite_static()``) must now include the ``py::metaclass()``
505 annotation as an argument to the ``class_`` constructor.
506
507 These two changes were necessary to make type definitions in pybind11
508 future-proof, and to support PyPy via its cpyext mechanism. `#527
509 <https://github.com/pybind/pybind11/pull/527>`_.
510
511
512 3. This version of pybind11 uses a redesigned mechnism for instantiating
513 trempoline classes that are used to override virtual methods from within
514 Python. This led to the following user-visible syntax change: instead of
515
516 .. code-block:: cpp
517
518 py::class_<TrampolineClass>("MyClass")
519 .alias<MyClass>()
520 ....
521
522 write
523
524 .. code-block:: cpp
525
526 py::class_<MyClass, TrampolineClass>("MyClass")
527 ....
528
529 Importantly, both the original and the trampoline class are now
530 specified as an arguments (in arbitrary order) to the ``py::class_``
531 template, and the ``alias<..>()`` call is gone. The new scheme has zero
532 overhead in cases when Python doesn't override any functions of the
533 underlying C++ class. `rev. 86d825
534 <https://github.com/pybind/pybind11/commit/86d825>`_.
535
Wenzel Jakobe6b2f752016-07-10 10:54:46 +0200536* Added ``eval`` and ``eval_file`` functions for evaluating expressions and
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100537 statements from a string or file. `rev. 0d3fc3
538 <https://github.com/pybind/pybind11/commit/0d3fc3>`_.
539
540* pybind11 can now create types with a modifiable dictionary.
541 `#437 <https://github.com/pybind/pybind11/pull/437>`_ and
542 `#444 <https://github.com/pybind/pybind11/pull/444>`_.
543
544* Support for translation of arbitrary C++ exceptions to Python counterparts.
545 `#296 <https://github.com/pybind/pybind11/pull/296>`_ and
546 `#273 <https://github.com/pybind/pybind11/pull/273>`_.
547
548* Report full backtraces through mixed C++/Python code, better reporting for
549 import errors, fixed GIL management in exception processing.
550 `#537 <https://github.com/pybind/pybind11/pull/537>`_,
551 `#494 <https://github.com/pybind/pybind11/pull/494>`_,
552 `rev. e72d95 <https://github.com/pybind/pybind11/commit/e72d95>`_, and
553 `rev. 099d6e <https://github.com/pybind/pybind11/commit/099d6e>`_.
554
555* Support for bit-level operations, comparisons, and serialization of C++
556 enumerations. `#503 <https://github.com/pybind/pybind11/pull/503>`_,
557 `#508 <https://github.com/pybind/pybind11/pull/508>`_,
558 `#380 <https://github.com/pybind/pybind11/pull/380>`_,
559 `#309 <https://github.com/pybind/pybind11/pull/309>`_.
560 `#311 <https://github.com/pybind/pybind11/pull/311>`_.
561
562* The ``class_`` constructor now accepts its template arguments in any order.
563 `#385 <https://github.com/pybind/pybind11/pull/385>`_.
564
565* Attribute and item accessors now have a more complete interface which makes
566 it possible to chain attributes as in
567 ``obj.attr("a")[key].attr("b").attr("method")(1, 2, 3)``. `#425
568 <https://github.com/pybind/pybind11/pull/425>`_.
569
570* Major redesign of the default and conversion constructors in ``pytypes.h``.
571 `#464 <https://github.com/pybind/pybind11/pull/464>`_.
572
573* Added built-in support for ``std::shared_ptr`` holder type. It is no longer
574 necessary to to include a declaration of the form
575 ``PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>)`` (though continuing to
576 do so won't cause an error).
577 `#454 <https://github.com/pybind/pybind11/pull/454>`_.
578
579* New ``py::overload_cast`` casting operator to select among multiple possible
580 overloads of a function. An example:
581
582 .. code-block:: cpp
583
584 py::class_<Pet>(m, "Pet")
585 .def("set", py::overload_cast<int>(&Pet::set), "Set the pet's age")
586 .def("set", py::overload_cast<const std::string &>(&Pet::set), "Set the pet's name");
587
588 This feature only works on C++14-capable compilers.
589 `#541 <https://github.com/pybind/pybind11/pull/541>`_.
590
591* C++ types are automatically cast to Python types, e.g. when assigning
592 them as an attribute. For instance, the following is now legal:
593
594 .. code-block:: cpp
595
596 py::module m = /* ... */
597 m.attr("constant") = 123;
598
599 (Previously, a ``py::cast`` call was necessary to avoid a compilation error.)
600 `#551 <https://github.com/pybind/pybind11/pull/551>`_.
601
602* Redesigned ``pytest``-based test suite. `#321 <https://github.com/pybind/pybind11/pull/321>`_.
603
604* Instance tracking to detect reference leaks in test suite. `#324 <https://github.com/pybind/pybind11/pull/324>`_
605
606* pybind11 can now distinguish between multiple different instances that are
607 located at the same memory address, but which have different types.
608 `#329 <https://github.com/pybind/pybind11/pull/329>`_.
609
610* Improved logic in ``move`` return value policy.
611 `#510 <https://github.com/pybind/pybind11/pull/510>`_,
612 `#297 <https://github.com/pybind/pybind11/pull/297>`_.
613
614* Generalized unpacking API to permit calling Python functions from C++ using
615 notation such as ``foo(a1, a2, *args, "ka"_a=1, "kb"_a=2, **kwargs)``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
616
617* ``py::print()`` function whose behavior matches that of the native Python
618 ``print()`` function. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
619
620* Added ``py::dict`` keyword constructor:``auto d = dict("number"_a=42,
621 "name"_a="World");``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
622
623* Added ``py::str::format()`` method and ``_s`` literal: ``py::str s = "1 + 2
624 = {}"_s.format(3);``. `#372 <https://github.com/pybind/pybind11/pull/372>`_.
625
626* Added ``py::repr()`` function which is equivalent to Python's builtin
627 ``repr()``. `#333 <https://github.com/pybind/pybind11/pull/333>`_.
628
629* Improved construction and destruction logic for holder types. It is now
630 possible to reference instances with smart pointer holder types without
631 constructing the holder if desired. The ``PYBIND11_DECLARE_HOLDER_TYPE``
632 macro now accepts an optional second parameter to indicate whether the holder
633 type uses intrusive reference counting.
634 `#533 <https://github.com/pybind/pybind11/pull/533>`_ and
635 `#561 <https://github.com/pybind/pybind11/pull/561>`_.
636
637* Mapping a stateless C++ function to Python and back is now "for free" (i.e.
638 no extra indirections or argument conversion overheads). `rev. 954b79
639 <https://github.com/pybind/pybind11/commit/954b79>`_.
640
641* Bindings for ``std::valarray<T>``.
642 `#545 <https://github.com/pybind/pybind11/pull/545>`_.
643
644* Improved support for C++17 capable compilers.
645 `#562 <https://github.com/pybind/pybind11/pull/562>`_.
646
647* Bindings for ``std::optional<t>``.
648 `#475 <https://github.com/pybind/pybind11/pull/475>`_,
649 `#476 <https://github.com/pybind/pybind11/pull/476>`_,
650 `#479 <https://github.com/pybind/pybind11/pull/479>`_,
651 `#499 <https://github.com/pybind/pybind11/pull/499>`_, and
652 `#501 <https://github.com/pybind/pybind11/pull/501>`_.
653
654* ``stl_bind.h``: general improvements and support for ``std::map`` and
655 ``std::unordered_map``.
656 `#490 <https://github.com/pybind/pybind11/pull/490>`_,
657 `#282 <https://github.com/pybind/pybind11/pull/282>`_,
658 `#235 <https://github.com/pybind/pybind11/pull/235>`_.
659
660* The ``std::tuple``, ``std::pair``, ``std::list``, and ``std::vector`` type
661 casters now accept any Python sequence type as input. `rev. 107285
662 <https://github.com/pybind/pybind11/commit/107285>`_.
663
664* Improved CMake Python detection on multi-architecture Linux.
665 `#532 <https://github.com/pybind/pybind11/pull/532>`_.
666
667* Infrastructure to selectively disable or enable parts of the automatically
668 generated docstrings. `#486 <https://github.com/pybind/pybind11/pull/486>`_.
669
670* ``reference`` and ``reference_internal`` are now the default return value
671 properties for static and non-static properties, respectively. `#473
672 <https://github.com/pybind/pybind11/pull/473>`_. (the previous defaults
673 were ``automatic``). `#473 <https://github.com/pybind/pybind11/pull/473>`_.
674
675* Support for ``std::unique_ptr`` with non-default deleters or no deleter at
676 all (``py::nodelete``). `#384 <https://github.com/pybind/pybind11/pull/384>`_.
677
Wenzel Jakob3c796712016-12-23 16:19:36 +0100678* Deprecated ``handle::call()`` method. The new syntax to call Python
679 functions is simply ``handle()``. It can also be invoked explicitly via
Wenzel Jakobd3549d62016-12-23 16:01:04 +0100680 ``handle::operator<X>()``, where ``X`` is an optional return value policy.
681
682* Print more informative error messages when ``make_tuple()`` or ``cast()``
683 fail. `#262 <https://github.com/pybind/pybind11/pull/262>`_.
684
685* Creation of holder types for classes deriving from
686 ``std::enable_shared_from_this<>`` now also works for ``const`` values.
687 `#260 <https://github.com/pybind/pybind11/pull/260>`_.
688
689* ``make_iterator()`` improvements for better compatibility with various
690 types (now uses prefix increment operator); it now also accepts iterators
691 with different begin/end types as long as they are equality comparable.
692 `#247 <https://github.com/pybind/pybind11/pull/247>`_.
693
694* ``arg()`` now accepts a wider range of argument types for default values.
695 `#244 <https://github.com/pybind/pybind11/pull/244>`_.
696
697* Support ``keep_alive`` where the nurse object may be ``None``. `#341
698 <https://github.com/pybind/pybind11/pull/341>`_.
699
700* Added constructors for ``str`` and ``bytes`` from zero-terminated char
701 pointers, and from char pointers and length. Added constructors for ``str``
702 from ``bytes`` and for ``bytes`` from ``str``, which will perform UTF-8
703 decoding/encoding as required.
704
705* Many other improvements of library internals without user-visible changes
706
Wenzel Jakoba720a602016-07-12 18:02:13 +0200707
7081.8.1 (July 12, 2016)
709----------------------
Wenzel Jakobc47d4982016-07-11 23:40:28 +0200710* Fixed a rare but potentially very severe issue when the garbage collector ran
711 during pybind11 type creation.
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200712
Wenzel Jakobf9502152016-06-14 15:00:46 +02007131.8.0 (June 14, 2016)
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200714----------------------
715* Redesigned CMake build system which exports a convenient
716 ``pybind11_add_module`` function to parent projects.
717* ``std::vector<>`` type bindings analogous to Boost.Python's ``indexing_suite``
718* Transparent conversion of sparse and dense Eigen matrices and vectors (``eigen.h``)
719* Added an ``ExtraFlags`` template argument to the NumPy ``array_t<>`` wrapper
720 to disable an enforced cast that may lose precision, e.g. to create overloads
721 for different precisions and complex vs real-valued matrices.
Wenzel Jakob3f200fa2016-05-17 15:35:29 +0200722* Prevent implicit conversion of floating point values to integral types in
723 function arguments
Wenzel Jakob163ac2e2016-05-03 14:16:18 +0200724* Fixed incorrect default return value policy for functions returning a shared
725 pointer
Wenzel Jakob38d8b8c2016-05-31 09:53:28 +0200726* Don't allow registering a type via ``class_`` twice
Wenzel Jakob163ac2e2016-05-03 14:16:18 +0200727* Don't allow casting a ``None`` value into a C++ lvalue reference
728* Fixed a crash in ``enum_::operator==`` that was triggered by the ``help()`` command
729* Improved detection of whether or not custom C++ types can be copy/move-constructed
730* Extended ``str`` type to also work with ``bytes`` instances
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200731* Added a ``"name"_a`` user defined string literal that is equivalent to ``py::arg("name")``.
732* When specifying function arguments via ``py::arg``, the test that verifies
733 the number of arguments now runs at compile time.
Wenzel Jakob163ac2e2016-05-03 14:16:18 +0200734* Added ``[[noreturn]]`` attribute to ``pybind11_fail()`` to quench some
735 compiler warnings
Wenzel Jakob86d825f2016-05-26 13:19:27 +0200736* List function arguments in exception text when the dispatch code cannot find
737 a matching overload
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200738* Added ``PYBIND11_OVERLOAD_NAME`` and ``PYBIND11_OVERLOAD_PURE_NAME`` macros which
Wenzel Jakobf9502152016-06-14 15:00:46 +0200739 can be used to override virtual methods whose name differs in C++ and Python
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200740 (e.g. ``__call__`` and ``operator()``)
Wenzel Jakob163ac2e2016-05-03 14:16:18 +0200741* Various minor ``iterator`` and ``make_iterator()`` improvements
Wenzel Jakob86d825f2016-05-26 13:19:27 +0200742* Transparently support ``__bool__`` on Python 2.x and Python 3.x
743* Fixed issue with destructor of unpickled object not being called
Wenzel Jakob163ac2e2016-05-03 14:16:18 +0200744* Minor CMake build system improvements on Windows
Wenzel Jakob86d825f2016-05-26 13:19:27 +0200745* New ``pybind11::args`` and ``pybind11::kwargs`` types to create functions which
746 take an arbitrary number of arguments and keyword arguments
747* New syntax to call a Python function from C++ using ``*args`` and ``*kwargs``
Wenzel Jakob1cbe7ef2016-06-14 14:55:10 +0200748* The functions ``def_property_*`` now correctly process docstring arguments (these
749 formerly caused a segmentation fault)
750* Many ``mkdoc.py`` improvements (enumerations, template arguments, ``DOC()``
751 macro accepts more arguments)
752* Cygwin support
753* Documentation improvements (pickling support, ``keep_alive``, macro usage)
Wenzel Jakobc4d7ccd2016-04-30 22:00:44 +0200754
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +02007551.7 (April 30, 2016)
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +0200756----------------------
Wenzel Jakob1ac22e32016-04-25 23:25:40 +0200757* Added a new ``move`` return value policy that triggers C++11 move semantics.
Wenzel Jakobdd7ec342016-04-29 10:06:24 +0200758 The automatic return value policy falls back to this case whenever a rvalue
Wenzel Jakob1ac22e32016-04-25 23:25:40 +0200759 reference is encountered
Wenzel Jakobe84f5572016-04-26 23:19:19 +0200760* Significantly more general GIL state routines that are used instead of
761 Python's troublesome ``PyGILState_Ensure`` and ``PyGILState_Release`` API
Wenzel Jakobdd7ec342016-04-29 10:06:24 +0200762* Redesign of opaque types that drastically simplifies their usage
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +0200763* Extended ability to pass values of type ``[const] void *``
Wenzel Jakob1ac22e32016-04-25 23:25:40 +0200764* ``keep_alive`` fix: don't fail when there is no patient
Wenzel Jakobdd7ec342016-04-29 10:06:24 +0200765* ``functional.h``: acquire the GIL before calling a Python function
Wenzel Jakob1ac22e32016-04-25 23:25:40 +0200766* Added Python RAII type wrappers ``none`` and ``iterable``
767* Added ``*args`` and ``*kwargs`` pass-through parameters to
768 ``pybind11.get_include()`` function
Wenzel Jakobdd7ec342016-04-29 10:06:24 +0200769* Iterator improvements and fixes
770* Documentation on return value policies and opaque types improved
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +0200771
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +02007721.6 (April 30, 2016)
773----------------------
774* Skipped due to upload to PyPI gone wrong and inability to recover
775 (https://github.com/pypa/packaging-problems/issues/74)
776
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +02007771.5 (April 21, 2016)
Wenzel Jakob2c5d5602016-04-11 18:46:11 +0200778----------------------
Wenzel Jakobc79dbe42016-04-17 21:54:31 +0200779* For polymorphic types, use RTTI to try to return the closest type registered with pybind11
Wenzel Jakobd7efa4f2016-04-13 13:45:09 +0200780* Pickling support for serializing and unserializing C++ instances to a byte stream in Python
Wenzel Jakobb2825952016-04-13 23:33:00 +0200781* Added a convenience routine ``make_iterator()`` which turns a range indicated
782 by a pair of C++ iterators into a iterable Python object
783* Added ``len()`` and a variadic ``make_tuple()`` function
Wenzel Jakobb2b44a92016-04-15 17:50:40 +0200784* Addressed a rare issue that could confuse the current virtual function
785 dispatcher and another that could lead to crashes in multi-threaded
786 applications
Wenzel Jakobb2825952016-04-13 23:33:00 +0200787* Added a ``get_include()`` function to the Python module that returns the path
788 of the directory containing the installed pybind11 header files
Wenzel Jakob1c329aa2016-04-13 02:37:36 +0200789* Documentation improvements: import issues, symbol visibility, pickling, limitations
Wenzel Jakobdbe43ff2016-04-21 12:21:14 +0200790* Added casting support for ``std::reference_wrapper<>``
Wenzel Jakob2c5d5602016-04-11 18:46:11 +0200791
Wenzel Jakob33c2a042016-04-07 09:06:49 +02007921.4 (April 7, 2016)
Wenzel Jakobd2385e82016-03-08 18:04:43 +0100793--------------------------
Wenzel Jakob81dfd2c2016-03-08 19:40:32 +0100794* Transparent type conversion for ``std::wstring`` and ``wchar_t``
Wenzel Jakob0e6ca592016-04-07 08:49:37 +0200795* Allow passing ``nullptr``-valued strings
Wenzel Jakob34116732016-04-06 17:55:41 +0200796* Transparent passing of ``void *`` pointers using capsules
Wenzel Jakob0e6ca592016-04-07 08:49:37 +0200797* Transparent support for returning values wrapped in ``std::unique_ptr<>``
Wenzel Jakob4e455dd2016-03-09 16:38:28 +0100798* Improved docstring generation for compatibility with Sphinx
Wenzel Jakob34116732016-04-06 17:55:41 +0200799* Nicer debug error message when default parameter construction fails
800* Support for "opaque" types that bypass the transparent conversion layer for STL containers
801* Redesigned type casting interface to avoid ambiguities that could occasionally cause compiler errors
Wenzel Jakob2c5d5602016-04-11 18:46:11 +0200802* Redesigned property implementation; fixes crashes due to an unfortunate default return value policy
Wenzel Jakob4e455dd2016-03-09 16:38:28 +0100803* Anaconda package generation support
Wenzel Jakobd2385e82016-03-08 18:04:43 +0100804
8051.3 (March 8, 2016)
Wenzel Jakob8ed28082016-02-07 17:32:37 +0100806--------------------------
Wenzel Jakobcf2b87a2016-02-22 17:32:44 +0100807
808* Added support for the Intel C++ compiler (v15+)
809* Added support for the STL unordered set/map data structures
Wenzel Jakobd2385e82016-03-08 18:04:43 +0100810* Added support for the STL linked list data structure
Wenzel Jakobcf2b87a2016-02-22 17:32:44 +0100811* NumPy-style broadcasting support in ``pybind11::vectorize``
Wenzel Jakob2c5d5602016-04-11 18:46:11 +0200812* pybind11 now displays more verbose error messages when ``arg::operator=()`` fails
Wenzel Jakobd2385e82016-03-08 18:04:43 +0100813* pybind11 internal data structures now live in a version-dependent namespace to avoid ABI issues
814* Many, many bugfixes involving corner cases and advanced usage
Wenzel Jakob8ed28082016-02-07 17:32:37 +0100815
8161.2 (February 7, 2016)
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100817--------------------------
Wenzel Jakob48548ea2016-01-17 22:36:44 +0100818
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100819* Optional: efficient generation of function signatures at compile time using C++14
Wenzel Jakob48548ea2016-01-17 22:36:44 +0100820* Switched to a simpler and more general way of dealing with function default
821 arguments. Unused keyword arguments in function calls are now detected and
822 cause errors as expected
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100823* New ``keep_alive`` call policy analogous to Boost.Python's ``with_custodian_and_ward``
Wenzel Jakob48548ea2016-01-17 22:36:44 +0100824* New ``pybind11::base<>`` attribute to indicate a subclass relationship
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100825* Improved interface for RAII type wrappers in ``pytypes.h``
826* Use RAII type wrappers consistently within pybind11 itself. This
827 fixes various potential refcount leaks when exceptions occur
Wenzel Jakob2c5d5602016-04-11 18:46:11 +0200828* Added new ``bytes`` RAII type wrapper (maps to ``string`` in Python 2.7)
Wenzel Jakob48548ea2016-01-17 22:36:44 +0100829* Made handle and related RAII classes const correct, using them more
830 consistently everywhere now
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100831* Got rid of the ugly ``__pybind11__`` attributes on the Python side---they are
832 now stored in a C++ hash table that is not visible in Python
833* Fixed refcount leaks involving NumPy arrays and bound functions
834* Vastly improved handling of shared/smart pointers
835* Removed an unnecessary copy operation in ``pybind11::vectorize``
836* Fixed naming clashes when both pybind11 and NumPy headers are included
837* Added conversions for additional exception types
Wenzel Jakob48548ea2016-01-17 22:36:44 +0100838* Documentation improvements (using multiple extension modules, smart pointers,
839 other minor clarifications)
Wenzel Jakob61587162016-01-18 22:38:52 +0100840* unified infrastructure for parsing variadic arguments in ``class_`` and cpp_function
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100841* Fixed license text (was: ZLIB, should have been: 3-clause BSD)
842* Python 3.2 compatibility
Wenzel Jakobcd4e6ae2016-01-29 11:48:40 +0100843* Fixed remaining issues when accessing types in another plugin module
844* Added enum comparison and casting methods
845* Improved SFINAE-based detection of whether types are copy-constructible
846* Eliminated many warnings about unused variables and the use of ``offsetof()``
Wenzel Jakob8ed28082016-02-07 17:32:37 +0100847* Support for ``std::array<>`` conversions
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100848
8491.1 (December 7, 2015)
850--------------------------
851
852* Documentation improvements (GIL, wrapping functions, casting, fixed many typos)
853* Generalized conversion of integer types
854* Improved support for casting function objects
855* Improved support for ``std::shared_ptr<>`` conversions
856* Initial support for ``std::set<>`` conversions
857* Fixed type resolution issue for types defined in a separate plugin module
858* Cmake build system improvements
859* Factored out generic functionality to non-templated code (smaller code size)
860* Added a code size / compile time benchmark vs Boost.Python
861* Added an appveyor CI script
862
8631.0 (October 15, 2015)
864------------------------
865* Initial release