changelog.rst 7.47 KB
Newer Older
1
2
3
4
5
.. _changelog:

Changelog
#########

Wenzel Jakob's avatar
Wenzel Jakob committed
6
1.8 (Not yet released)
Wenzel Jakob's avatar
Wenzel Jakob committed
7
----------------------
8
* Redesigned virtual call mechanism and user-facing syntax (breaking change!)
9
10
* Prevent implicit conversion of floating point values to integral types in
  function arguments
11
* Transparent conversion of sparse and dense Eigen matrices and vectors
12
* ``std::vector<>`` type bindings analogous to Boost.Python's ``indexing_suite``
Wenzel Jakob's avatar
Wenzel Jakob committed
13
14
* Fixed incorrect default return value policy for functions returning a shared
  pointer
15
* Don't allow registering a type via ``class_`` twice
Wenzel Jakob's avatar
Wenzel Jakob committed
16
17
18
19
20
21
* Don't allow casting a ``None`` value into a C++ lvalue reference
* Fixed a crash in ``enum_::operator==`` that was triggered by the ``help()`` command
* Improved detection of whether or not custom C++ types can be copy/move-constructed
* Extended ``str`` type to also work with ``bytes`` instances
* Added ``[[noreturn]]`` attribute to ``pybind11_fail()`` to quench some
  compiler warnings
22
23
* List function arguments in exception text when the dispatch code cannot find
  a matching overload
Wenzel Jakob's avatar
Wenzel Jakob committed
24
* Various minor ``iterator`` and ``make_iterator()`` improvements
25
26
* Transparently support ``__bool__`` on Python 2.x and Python 3.x
* Fixed issue with destructor of unpickled object not being called
Wenzel Jakob's avatar
Wenzel Jakob committed
27
28
29
* Minor CMake build system improvements on Windows
* Many ``mkdoc.py`` improvements (enumerations, template arguments, ``DOC()``
  macro accepts more arguments)
30
31
32
33
34
* New ``pybind11::args`` and ``pybind11::kwargs`` types to create functions which
  take an arbitrary number of arguments and keyword arguments
* New syntax to call a Python function from C++ using ``*args`` and ``*kwargs``
* Added an ``ExtraFlags`` template argument to the NumPy ``array_t<>`` wrapper. This
  can be used to disable an enforced cast that may lose precision
Wenzel Jakob's avatar
Wenzel Jakob committed
35
* Documentation improvements (pickling support, ``keep_alive``)
Wenzel Jakob's avatar
Wenzel Jakob committed
36

Wenzel Jakob's avatar
Wenzel Jakob committed
37
1.7 (April 30, 2016)
38
----------------------
Wenzel Jakob's avatar
Wenzel Jakob committed
39
* Added a new ``move`` return value policy that triggers C++11 move semantics.
Wenzel Jakob's avatar
Wenzel Jakob committed
40
  The automatic return value policy falls back to this case whenever a rvalue
Wenzel Jakob's avatar
Wenzel Jakob committed
41
  reference is encountered
Wenzel Jakob's avatar
Wenzel Jakob committed
42
43
* Significantly more general GIL state routines that are used instead of
  Python's troublesome ``PyGILState_Ensure`` and ``PyGILState_Release`` API
Wenzel Jakob's avatar
Wenzel Jakob committed
44
* Redesign of opaque types that drastically simplifies their usage
Wenzel Jakob's avatar
Wenzel Jakob committed
45
* Extended ability to pass values of type ``[const] void *``
Wenzel Jakob's avatar
Wenzel Jakob committed
46
* ``keep_alive`` fix: don't fail when there is no patient
Wenzel Jakob's avatar
Wenzel Jakob committed
47
* ``functional.h``: acquire the GIL before calling a Python function
Wenzel Jakob's avatar
Wenzel Jakob committed
48
49
50
* Added Python RAII type wrappers ``none`` and ``iterable``
* Added ``*args`` and ``*kwargs`` pass-through parameters to
  ``pybind11.get_include()`` function
Wenzel Jakob's avatar
Wenzel Jakob committed
51
52
* Iterator improvements and fixes
* Documentation on return value policies and opaque types improved
53

Wenzel Jakob's avatar
Wenzel Jakob committed
54
55
56
57
58
1.6 (April 30, 2016)
----------------------
* Skipped due to upload to PyPI gone wrong and inability to recover
  (https://github.com/pypa/packaging-problems/issues/74)

59
1.5 (April 21, 2016)
Wenzel Jakob's avatar
Wenzel Jakob committed
60
----------------------
Wenzel Jakob's avatar
Wenzel Jakob committed
61
* For polymorphic types, use RTTI to try to return the closest type registered with pybind11
62
* Pickling support for serializing and unserializing C++ instances to a byte stream in Python
63
64
65
* Added a convenience routine ``make_iterator()`` which turns a range indicated
  by a pair of C++ iterators into a iterable Python object
* Added ``len()`` and a variadic ``make_tuple()`` function
66
67
68
* Addressed a rare issue that could confuse the current virtual function
  dispatcher and another that could lead to crashes in multi-threaded
  applications
69
70
* Added a ``get_include()`` function to the Python module that returns the path
  of the directory containing the installed pybind11 header files
Wenzel Jakob's avatar
Wenzel Jakob committed
71
* Documentation improvements: import issues, symbol visibility, pickling, limitations
72
* Added casting support for ``std::reference_wrapper<>``
Wenzel Jakob's avatar
Wenzel Jakob committed
73

Wenzel Jakob's avatar
Wenzel Jakob committed
74
1.4 (April 7, 2016)
Wenzel Jakob's avatar
Wenzel Jakob committed
75
--------------------------
76
* Transparent type conversion for ``std::wstring`` and ``wchar_t``
Wenzel Jakob's avatar
Wenzel Jakob committed
77
* Allow passing ``nullptr``-valued strings
Wenzel Jakob's avatar
Wenzel Jakob committed
78
* Transparent passing of ``void *`` pointers using capsules
Wenzel Jakob's avatar
Wenzel Jakob committed
79
* Transparent support for returning values wrapped in ``std::unique_ptr<>``
80
* Improved docstring generation for compatibility with Sphinx
Wenzel Jakob's avatar
Wenzel Jakob committed
81
82
83
* Nicer debug error message when default parameter construction fails
* Support for "opaque" types that bypass the transparent conversion layer for STL containers
* Redesigned type casting interface to avoid ambiguities that could occasionally cause compiler errors
Wenzel Jakob's avatar
Wenzel Jakob committed
84
* Redesigned property implementation; fixes crashes due to an unfortunate default return value policy
85
* Anaconda package generation support
Wenzel Jakob's avatar
Wenzel Jakob committed
86
87

1.3 (March 8, 2016)
Wenzel Jakob's avatar
Wenzel Jakob committed
88
--------------------------
Wenzel Jakob's avatar
Wenzel Jakob committed
89
90
91

* Added support for the Intel C++ compiler (v15+)
* Added support for the STL unordered set/map data structures
Wenzel Jakob's avatar
Wenzel Jakob committed
92
* Added support for the STL linked list data structure
Wenzel Jakob's avatar
Wenzel Jakob committed
93
* NumPy-style broadcasting support in ``pybind11::vectorize``
Wenzel Jakob's avatar
Wenzel Jakob committed
94
* pybind11 now displays more verbose error messages when ``arg::operator=()`` fails
Wenzel Jakob's avatar
Wenzel Jakob committed
95
96
* pybind11 internal data structures now live in a version-dependent namespace to avoid ABI issues
* Many, many bugfixes involving corner cases and advanced usage
Wenzel Jakob's avatar
Wenzel Jakob committed
97
98

1.2 (February 7, 2016)
99
--------------------------
Wenzel Jakob's avatar
Wenzel Jakob committed
100

101
* Optional: efficient generation of function signatures at compile time using C++14
Wenzel Jakob's avatar
Wenzel Jakob committed
102
103
104
* Switched to a simpler and more general way of dealing with function default
  arguments. Unused keyword arguments in function calls are now detected and
  cause errors as expected
105
* New ``keep_alive`` call policy analogous to Boost.Python's ``with_custodian_and_ward``
Wenzel Jakob's avatar
Wenzel Jakob committed
106
* New ``pybind11::base<>`` attribute to indicate a subclass relationship
107
108
109
* Improved interface for RAII type wrappers in ``pytypes.h``
* Use RAII type wrappers consistently within pybind11 itself. This
  fixes various potential refcount leaks when exceptions occur
Wenzel Jakob's avatar
Wenzel Jakob committed
110
* Added new ``bytes`` RAII type wrapper (maps to ``string`` in Python 2.7)
Wenzel Jakob's avatar
Wenzel Jakob committed
111
112
* Made handle and related RAII classes const correct, using them more
  consistently everywhere now
113
114
115
116
117
118
119
* Got rid of the ugly ``__pybind11__`` attributes on the Python side---they are
  now stored in a C++ hash table that is not visible in Python
* Fixed refcount leaks involving NumPy arrays and bound functions
* Vastly improved handling of shared/smart pointers
* Removed an unnecessary copy operation in ``pybind11::vectorize``
* Fixed naming clashes when both pybind11 and NumPy headers are included
* Added conversions for additional exception types
Wenzel Jakob's avatar
Wenzel Jakob committed
120
121
* Documentation improvements (using multiple extension modules, smart pointers,
  other minor clarifications)
122
* unified infrastructure for parsing variadic arguments in ``class_`` and cpp_function
123
124
* Fixed license text (was: ZLIB, should have been: 3-clause BSD)
* Python 3.2 compatibility
Wenzel Jakob's avatar
Wenzel Jakob committed
125
126
127
128
* Fixed remaining issues when accessing types in another plugin module
* Added enum comparison and casting methods
* Improved SFINAE-based detection of whether types are copy-constructible
* Eliminated many warnings about unused variables and the use of ``offsetof()``
Wenzel Jakob's avatar
Wenzel Jakob committed
129
* Support for ``std::array<>`` conversions
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147

1.1 (December 7, 2015)
--------------------------

* Documentation improvements (GIL, wrapping functions, casting, fixed many typos)
* Generalized conversion of integer types
* Improved support for casting function objects
* Improved support for ``std::shared_ptr<>`` conversions
* Initial support for ``std::set<>`` conversions
* Fixed type resolution issue for types defined in a separate plugin module
* Cmake build system improvements
* Factored out generic functionality to non-templated code (smaller code size)
* Added a code size / compile time benchmark vs Boost.Python
* Added an appveyor CI script

1.0 (October 15, 2015)
------------------------
* Initial release