blob: 103bd389855c030c337b8b4ca489feaae5bb729e [file] [log] [blame]
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +01001.. _changelog:
2
3Changelog
4#########
5
Wenzel Jakob163ac2e2016-05-03 14:16:18 +020061.8 (Not yet released)
Wenzel Jakobc4d7ccd2016-04-30 22:00:44 +02007----------------------
Wenzel Jakob163ac2e2016-05-03 14:16:18 +02008* Fixed incorrect default return value policy for functions returning a shared
9 pointer
10* Don't allow casting a ``None`` value into a C++ lvalue reference
11* Fixed a crash in ``enum_::operator==`` that was triggered by the ``help()`` command
12* Improved detection of whether or not custom C++ types can be copy/move-constructed
13* Extended ``str`` type to also work with ``bytes`` instances
14* Added ``[[noreturn]]`` attribute to ``pybind11_fail()`` to quench some
15 compiler warnings
16* Various minor ``iterator`` and ``make_iterator()`` improvements
17* Minor CMake build system improvements on Windows
18* Many ``mkdoc.py`` improvements (enumerations, template arguments, ``DOC()``
19 macro accepts more arguments)
20* Documentation improvements (pickling support, ``keep_alive``)
Wenzel Jakobc4d7ccd2016-04-30 22:00:44 +020021
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +0200221.7 (April 30, 2016)
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +020023----------------------
Wenzel Jakob1ac22e32016-04-25 23:25:40 +020024* Added a new ``move`` return value policy that triggers C++11 move semantics.
Wenzel Jakobdd7ec342016-04-29 10:06:24 +020025 The automatic return value policy falls back to this case whenever a rvalue
Wenzel Jakob1ac22e32016-04-25 23:25:40 +020026 reference is encountered
Wenzel Jakobe84f5572016-04-26 23:19:19 +020027* Significantly more general GIL state routines that are used instead of
28 Python's troublesome ``PyGILState_Ensure`` and ``PyGILState_Release`` API
Wenzel Jakobdd7ec342016-04-29 10:06:24 +020029* Redesign of opaque types that drastically simplifies their usage
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +020030* Extended ability to pass values of type ``[const] void *``
Wenzel Jakob1ac22e32016-04-25 23:25:40 +020031* ``keep_alive`` fix: don't fail when there is no patient
Wenzel Jakobdd7ec342016-04-29 10:06:24 +020032* ``functional.h``: acquire the GIL before calling a Python function
Wenzel Jakob1ac22e32016-04-25 23:25:40 +020033* Added Python RAII type wrappers ``none`` and ``iterable``
34* Added ``*args`` and ``*kwargs`` pass-through parameters to
35 ``pybind11.get_include()`` function
Wenzel Jakobdd7ec342016-04-29 10:06:24 +020036* Iterator improvements and fixes
37* Documentation on return value policies and opaque types improved
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +020038
Wenzel Jakobe70b2ab2016-04-30 19:58:33 +0200391.6 (April 30, 2016)
40----------------------
41* Skipped due to upload to PyPI gone wrong and inability to recover
42 (https://github.com/pypa/packaging-problems/issues/74)
43
Wenzel Jakobbb79d7b2016-04-21 12:23:20 +0200441.5 (April 21, 2016)
Wenzel Jakob2c5d5602016-04-11 18:46:11 +020045----------------------
Wenzel Jakobc79dbe42016-04-17 21:54:31 +020046* For polymorphic types, use RTTI to try to return the closest type registered with pybind11
Wenzel Jakobd7efa4f2016-04-13 13:45:09 +020047* Pickling support for serializing and unserializing C++ instances to a byte stream in Python
Wenzel Jakobb2825952016-04-13 23:33:00 +020048* Added a convenience routine ``make_iterator()`` which turns a range indicated
49 by a pair of C++ iterators into a iterable Python object
50* Added ``len()`` and a variadic ``make_tuple()`` function
Wenzel Jakobb2b44a92016-04-15 17:50:40 +020051* Addressed a rare issue that could confuse the current virtual function
52 dispatcher and another that could lead to crashes in multi-threaded
53 applications
Wenzel Jakobb2825952016-04-13 23:33:00 +020054* Added a ``get_include()`` function to the Python module that returns the path
55 of the directory containing the installed pybind11 header files
Wenzel Jakob1c329aa2016-04-13 02:37:36 +020056* Documentation improvements: import issues, symbol visibility, pickling, limitations
Wenzel Jakobdbe43ff2016-04-21 12:21:14 +020057* Added casting support for ``std::reference_wrapper<>``
Wenzel Jakob2c5d5602016-04-11 18:46:11 +020058
Wenzel Jakob33c2a042016-04-07 09:06:49 +0200591.4 (April 7, 2016)
Wenzel Jakobd2385e82016-03-08 18:04:43 +010060--------------------------
Wenzel Jakob81dfd2c2016-03-08 19:40:32 +010061* Transparent type conversion for ``std::wstring`` and ``wchar_t``
Wenzel Jakob0e6ca592016-04-07 08:49:37 +020062* Allow passing ``nullptr``-valued strings
Wenzel Jakob34116732016-04-06 17:55:41 +020063* Transparent passing of ``void *`` pointers using capsules
Wenzel Jakob0e6ca592016-04-07 08:49:37 +020064* Transparent support for returning values wrapped in ``std::unique_ptr<>``
Wenzel Jakob4e455dd2016-03-09 16:38:28 +010065* Improved docstring generation for compatibility with Sphinx
Wenzel Jakob34116732016-04-06 17:55:41 +020066* Nicer debug error message when default parameter construction fails
67* Support for "opaque" types that bypass the transparent conversion layer for STL containers
68* Redesigned type casting interface to avoid ambiguities that could occasionally cause compiler errors
Wenzel Jakob2c5d5602016-04-11 18:46:11 +020069* Redesigned property implementation; fixes crashes due to an unfortunate default return value policy
Wenzel Jakob4e455dd2016-03-09 16:38:28 +010070* Anaconda package generation support
Wenzel Jakobd2385e82016-03-08 18:04:43 +010071
721.3 (March 8, 2016)
Wenzel Jakob8ed28082016-02-07 17:32:37 +010073--------------------------
Wenzel Jakobcf2b87a2016-02-22 17:32:44 +010074
75* Added support for the Intel C++ compiler (v15+)
76* Added support for the STL unordered set/map data structures
Wenzel Jakobd2385e82016-03-08 18:04:43 +010077* Added support for the STL linked list data structure
Wenzel Jakobcf2b87a2016-02-22 17:32:44 +010078* NumPy-style broadcasting support in ``pybind11::vectorize``
Wenzel Jakob2c5d5602016-04-11 18:46:11 +020079* pybind11 now displays more verbose error messages when ``arg::operator=()`` fails
Wenzel Jakobd2385e82016-03-08 18:04:43 +010080* pybind11 internal data structures now live in a version-dependent namespace to avoid ABI issues
81* Many, many bugfixes involving corner cases and advanced usage
Wenzel Jakob8ed28082016-02-07 17:32:37 +010082
831.2 (February 7, 2016)
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +010084--------------------------
Wenzel Jakob48548ea2016-01-17 22:36:44 +010085
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +010086* Optional: efficient generation of function signatures at compile time using C++14
Wenzel Jakob48548ea2016-01-17 22:36:44 +010087* Switched to a simpler and more general way of dealing with function default
88 arguments. Unused keyword arguments in function calls are now detected and
89 cause errors as expected
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +010090* New ``keep_alive`` call policy analogous to Boost.Python's ``with_custodian_and_ward``
Wenzel Jakob48548ea2016-01-17 22:36:44 +010091* New ``pybind11::base<>`` attribute to indicate a subclass relationship
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +010092* Improved interface for RAII type wrappers in ``pytypes.h``
93* Use RAII type wrappers consistently within pybind11 itself. This
94 fixes various potential refcount leaks when exceptions occur
Wenzel Jakob2c5d5602016-04-11 18:46:11 +020095* Added new ``bytes`` RAII type wrapper (maps to ``string`` in Python 2.7)
Wenzel Jakob48548ea2016-01-17 22:36:44 +010096* Made handle and related RAII classes const correct, using them more
97 consistently everywhere now
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +010098* Got rid of the ugly ``__pybind11__`` attributes on the Python side---they are
99 now stored in a C++ hash table that is not visible in Python
100* Fixed refcount leaks involving NumPy arrays and bound functions
101* Vastly improved handling of shared/smart pointers
102* Removed an unnecessary copy operation in ``pybind11::vectorize``
103* Fixed naming clashes when both pybind11 and NumPy headers are included
104* Added conversions for additional exception types
Wenzel Jakob48548ea2016-01-17 22:36:44 +0100105* Documentation improvements (using multiple extension modules, smart pointers,
106 other minor clarifications)
Wenzel Jakob61587162016-01-18 22:38:52 +0100107* unified infrastructure for parsing variadic arguments in ``class_`` and cpp_function
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100108* Fixed license text (was: ZLIB, should have been: 3-clause BSD)
109* Python 3.2 compatibility
Wenzel Jakobcd4e6ae2016-01-29 11:48:40 +0100110* Fixed remaining issues when accessing types in another plugin module
111* Added enum comparison and casting methods
112* Improved SFINAE-based detection of whether types are copy-constructible
113* Eliminated many warnings about unused variables and the use of ``offsetof()``
Wenzel Jakob8ed28082016-02-07 17:32:37 +0100114* Support for ``std::array<>`` conversions
Wenzel Jakob1ae77fe2016-01-17 22:36:43 +0100115
1161.1 (December 7, 2015)
117--------------------------
118
119* Documentation improvements (GIL, wrapping functions, casting, fixed many typos)
120* Generalized conversion of integer types
121* Improved support for casting function objects
122* Improved support for ``std::shared_ptr<>`` conversions
123* Initial support for ``std::set<>`` conversions
124* Fixed type resolution issue for types defined in a separate plugin module
125* Cmake build system improvements
126* Factored out generic functionality to non-templated code (smaller code size)
127* Added a code size / compile time benchmark vs Boost.Python
128* Added an appveyor CI script
129
1301.0 (October 15, 2015)
131------------------------
132* Initial release