Pybind11

Latest version: v2.13.6

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.13.6

New Features:

- A new `self._pybind11_conduit_v1_()` method is automatically added to all `py::class_`-wrapped types, to enable type-safe interoperability between different independent Python/C++ bindings systems, including pybind11 versions with different `PYBIND11_INTERNALS_VERSION`'s. Supported on pybind11 2.11.2, 2.12.1, and 2.13.6+. 5296

Bug fixes:

- Using `__cpp_nontype_template_args` instead of `__cpp_nontype_template_parameter_class`. 5330
- Properly translate C++ exception to Python exception when creating Python buffer from wrapped object. 5324

Documentation:

- Adds an answer (FAQ) for "What is a highly conclusive and simple way to find memory leaks?". 5340

2.13.5

Bug fixes:

- Fix includes when using Windows long paths (`\\?\` prefix). 5321
- Support `-Wpedantic` in C++20 mode. 5322
- Fix and test `<ranges>` support for `py::tuple` and `py::list`. 5314

2.13.4

Bug fixes:

- Fix paths with spaces, including on Windows. (Replaces regression from 5302) \4874

Documentation:

- Remove repetitive words. 5308

**Full Changelog**: https://github.com/pybind/pybind11/compare/v2.13.3...v2.13.4

2.13.3

Bug fixes:

- Quote paths from pybind11-config 5302
- Fix typo in Emscripten support when in config mode (CMake) 5301

**Full Changelog**: https://github.com/pybind/pybind11/compare/v2.13.2...v2.13.3

2.13.2

New Features:

- A `pybind11::detail::type_caster_std_function_specializations` feature was added, to support specializations for `std::function`'s with return types that require custom to-Python conversion behavior (to primary use case is to catch and convert exceptions). 4597

Changes:

- Use `PyMutex` instead of `std::mutex` for internal locking in the free-threaded build. 5219
- Add a special type annotation for C++ empty tuple. 5214
- When compiling for WebAssembly, add the required exception flags (CMake 3.13+). 5298

Bug fixes:

- Make `gil_safe_call_once_and_store` thread-safe in free-threaded CPython. 5246
- A missing `include <algorithm>` in pybind11/typing.h was added to fix build errors (in case user code does not already depend on that include). 5208
- Fix regression introduced in \5201 for GCC\<10.3 in C++20 mode. 5205
- Remove extra = when assigning flto value in the case for Clang in CMake. 5207

Tests:

- Adding WASM testing to our CI (Pyodide / Emscripten via scikit-build-core). 4745
- clang-tidy (in GitHub Actions) was updated from clang 15 to clang 18. 5272

**Full Changelog**: https://github.com/pybind/pybind11/compare/v2.13.1...v2.13.2

2.13.1

New Features:

- Add support for `Typing.Callable[..., T]`. 5202

Bug fixes:

- Avoid aligned allocation in free-threaded build in order to support macOS versions before 10.14. 5200

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.