You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
8.7 KiB

  1. .. _changelog:
  2. Changelog
  3. #########
  4. Starting with version 1.8, pybind11 releases use a
  5. [semantic versioning](http://semver.org) policy.
  6. Breaking changes queued for v2.0.0 (Not yet released)
  7. -----------------------------------------------------
  8. * Redesigned virtual call mechanism and user-facing syntax (see
  9. https://github.com/pybind/pybind11/commit/86d825f3302701d81414ddd3d38bcd09433076bc)
  10. * Remove ``handle.call()`` method
  11. 1.9.0 (Not yet released)
  12. ------------------------
  13. * Queued changes: ``py::eval*``, map indexing suite, documentation for indexing suites.
  14. 1.8.0 (June 14, 2016)
  15. ----------------------
  16. * Redesigned CMake build system which exports a convenient
  17. ``pybind11_add_module`` function to parent projects.
  18. * ``std::vector<>`` type bindings analogous to Boost.Python's ``indexing_suite``
  19. * Transparent conversion of sparse and dense Eigen matrices and vectors (``eigen.h``)
  20. * Added an ``ExtraFlags`` template argument to the NumPy ``array_t<>`` wrapper
  21. to disable an enforced cast that may lose precision, e.g. to create overloads
  22. for different precisions and complex vs real-valued matrices.
  23. * Prevent implicit conversion of floating point values to integral types in
  24. function arguments
  25. * Fixed incorrect default return value policy for functions returning a shared
  26. pointer
  27. * Don't allow registering a type via ``class_`` twice
  28. * Don't allow casting a ``None`` value into a C++ lvalue reference
  29. * Fixed a crash in ``enum_::operator==`` that was triggered by the ``help()`` command
  30. * Improved detection of whether or not custom C++ types can be copy/move-constructed
  31. * Extended ``str`` type to also work with ``bytes`` instances
  32. * Added a ``"name"_a`` user defined string literal that is equivalent to ``py::arg("name")``.
  33. * When specifying function arguments via ``py::arg``, the test that verifies
  34. the number of arguments now runs at compile time.
  35. * Added ``[[noreturn]]`` attribute to ``pybind11_fail()`` to quench some
  36. compiler warnings
  37. * List function arguments in exception text when the dispatch code cannot find
  38. a matching overload
  39. * Added ``PYBIND11_OVERLOAD_NAME`` and ``PYBIND11_OVERLOAD_PURE_NAME`` macros which
  40. can be used to override virtual methods whose name differs in C++ and Python
  41. (e.g. ``__call__`` and ``operator()``)
  42. * Various minor ``iterator`` and ``make_iterator()`` improvements
  43. * Transparently support ``__bool__`` on Python 2.x and Python 3.x
  44. * Fixed issue with destructor of unpickled object not being called
  45. * Minor CMake build system improvements on Windows
  46. * New ``pybind11::args`` and ``pybind11::kwargs`` types to create functions which
  47. take an arbitrary number of arguments and keyword arguments
  48. * New syntax to call a Python function from C++ using ``*args`` and ``*kwargs``
  49. * The functions ``def_property_*`` now correctly process docstring arguments (these
  50. formerly caused a segmentation fault)
  51. * Many ``mkdoc.py`` improvements (enumerations, template arguments, ``DOC()``
  52. macro accepts more arguments)
  53. * Cygwin support
  54. * Documentation improvements (pickling support, ``keep_alive``, macro usage)
  55. 1.7 (April 30, 2016)
  56. ----------------------
  57. * Added a new ``move`` return value policy that triggers C++11 move semantics.
  58. The automatic return value policy falls back to this case whenever a rvalue
  59. reference is encountered
  60. * Significantly more general GIL state routines that are used instead of
  61. Python's troublesome ``PyGILState_Ensure`` and ``PyGILState_Release`` API
  62. * Redesign of opaque types that drastically simplifies their usage
  63. * Extended ability to pass values of type ``[const] void *``
  64. * ``keep_alive`` fix: don't fail when there is no patient
  65. * ``functional.h``: acquire the GIL before calling a Python function
  66. * Added Python RAII type wrappers ``none`` and ``iterable``
  67. * Added ``*args`` and ``*kwargs`` pass-through parameters to
  68. ``pybind11.get_include()`` function
  69. * Iterator improvements and fixes
  70. * Documentation on return value policies and opaque types improved
  71. 1.6 (April 30, 2016)
  72. ----------------------
  73. * Skipped due to upload to PyPI gone wrong and inability to recover
  74. (https://github.com/pypa/packaging-problems/issues/74)
  75. 1.5 (April 21, 2016)
  76. ----------------------
  77. * For polymorphic types, use RTTI to try to return the closest type registered with pybind11
  78. * Pickling support for serializing and unserializing C++ instances to a byte stream in Python
  79. * Added a convenience routine ``make_iterator()`` which turns a range indicated
  80. by a pair of C++ iterators into a iterable Python object
  81. * Added ``len()`` and a variadic ``make_tuple()`` function
  82. * Addressed a rare issue that could confuse the current virtual function
  83. dispatcher and another that could lead to crashes in multi-threaded
  84. applications
  85. * Added a ``get_include()`` function to the Python module that returns the path
  86. of the directory containing the installed pybind11 header files
  87. * Documentation improvements: import issues, symbol visibility, pickling, limitations
  88. * Added casting support for ``std::reference_wrapper<>``
  89. 1.4 (April 7, 2016)
  90. --------------------------
  91. * Transparent type conversion for ``std::wstring`` and ``wchar_t``
  92. * Allow passing ``nullptr``-valued strings
  93. * Transparent passing of ``void *`` pointers using capsules
  94. * Transparent support for returning values wrapped in ``std::unique_ptr<>``
  95. * Improved docstring generation for compatibility with Sphinx
  96. * Nicer debug error message when default parameter construction fails
  97. * Support for "opaque" types that bypass the transparent conversion layer for STL containers
  98. * Redesigned type casting interface to avoid ambiguities that could occasionally cause compiler errors
  99. * Redesigned property implementation; fixes crashes due to an unfortunate default return value policy
  100. * Anaconda package generation support
  101. 1.3 (March 8, 2016)
  102. --------------------------
  103. * Added support for the Intel C++ compiler (v15+)
  104. * Added support for the STL unordered set/map data structures
  105. * Added support for the STL linked list data structure
  106. * NumPy-style broadcasting support in ``pybind11::vectorize``
  107. * pybind11 now displays more verbose error messages when ``arg::operator=()`` fails
  108. * pybind11 internal data structures now live in a version-dependent namespace to avoid ABI issues
  109. * Many, many bugfixes involving corner cases and advanced usage
  110. 1.2 (February 7, 2016)
  111. --------------------------
  112. * Optional: efficient generation of function signatures at compile time using C++14
  113. * Switched to a simpler and more general way of dealing with function default
  114. arguments. Unused keyword arguments in function calls are now detected and
  115. cause errors as expected
  116. * New ``keep_alive`` call policy analogous to Boost.Python's ``with_custodian_and_ward``
  117. * New ``pybind11::base<>`` attribute to indicate a subclass relationship
  118. * Improved interface for RAII type wrappers in ``pytypes.h``
  119. * Use RAII type wrappers consistently within pybind11 itself. This
  120. fixes various potential refcount leaks when exceptions occur
  121. * Added new ``bytes`` RAII type wrapper (maps to ``string`` in Python 2.7)
  122. * Made handle and related RAII classes const correct, using them more
  123. consistently everywhere now
  124. * Got rid of the ugly ``__pybind11__`` attributes on the Python side---they are
  125. now stored in a C++ hash table that is not visible in Python
  126. * Fixed refcount leaks involving NumPy arrays and bound functions
  127. * Vastly improved handling of shared/smart pointers
  128. * Removed an unnecessary copy operation in ``pybind11::vectorize``
  129. * Fixed naming clashes when both pybind11 and NumPy headers are included
  130. * Added conversions for additional exception types
  131. * Documentation improvements (using multiple extension modules, smart pointers,
  132. other minor clarifications)
  133. * unified infrastructure for parsing variadic arguments in ``class_`` and cpp_function
  134. * Fixed license text (was: ZLIB, should have been: 3-clause BSD)
  135. * Python 3.2 compatibility
  136. * Fixed remaining issues when accessing types in another plugin module
  137. * Added enum comparison and casting methods
  138. * Improved SFINAE-based detection of whether types are copy-constructible
  139. * Eliminated many warnings about unused variables and the use of ``offsetof()``
  140. * Support for ``std::array<>`` conversions
  141. 1.1 (December 7, 2015)
  142. --------------------------
  143. * Documentation improvements (GIL, wrapping functions, casting, fixed many typos)
  144. * Generalized conversion of integer types
  145. * Improved support for casting function objects
  146. * Improved support for ``std::shared_ptr<>`` conversions
  147. * Initial support for ``std::set<>`` conversions
  148. * Fixed type resolution issue for types defined in a separate plugin module
  149. * Cmake build system improvements
  150. * Factored out generic functionality to non-templated code (smaller code size)
  151. * Added a code size / compile time benchmark vs Boost.Python
  152. * Added an appveyor CI script
  153. 1.0 (October 15, 2015)
  154. ------------------------
  155. * Initial release