Published February 3, 2022
| Version v2.9.1
Software
Open
pybind/pybind11: Version 2.9.1
Creators
- Wenzel Jakob1
- Jason Rhinelander
- Henry Schreiner2
- Dean Moldovan3
- Ivan Smirnov
- Ralf W. Grosse-Kunstleve4
- Yannick Jadoul5
- Aaron Gokaslan6
- Boris Staletic
- Axel Huebl7
- Eric Cousineau8
- Bruce Merry
- Antony Lee
- Sylvain Corlay9
- Sergei Izmailov
- Lori A. Burns10
- Dan
- Dustin Spicuzza
- Sergey Lyskov11
- Trent Houliston12
- bennorth
- jbarlow83
- Pim Schellart
- Benjamin Pritchard13
- Robert Haschke14
- Boris Schäling
- tmiasko
- Jeremy Maitin-Shepard
- 1. EPFL
- 2. Princeton University
- 3. @lumicks
- 4. Google
- 5. Max Planck Institute for Psycholinguistics & Vrije Universiteit Brussel
- 6. @facebookresearch
- 7. LBNL, previously HZDR
- 8. Toyota Research Institute
- 9. QuantStack
- 10. Georgia Tech
- 11. Johns Hopkins University
- 12. @4TelPtyLtd
- 13. Virginia Tech/MolSSI
- 14. Bielefeld University
Description
Changes:
- If possible, attach Python exception with
py::raise_from
toTypeError
when casting from C++ to Python. This will give additional info if Python exceptions occur in the caster. Adds a test case of trying to convert a set from C++ to Python when the hash function is not defined in Python. #3605 - Add a mapping of C++11 nested exceptions to their Python exception equivalent using
py::raise_from
. This attaches the nested exceptions in Python using the__cause__
field. #3608 - Propagate Python exception traceback using
raise_from
if a pybind11 function runs out of overloads. #3671 py::multiple_inheritance
is now only needed when C++ bases are hidden from pybind11. #3650 and #3659
Bug fixes:
- Remove a boolean cast in
numpy.h
that causes MSVC C4800 warnings when compiling against Python 3.10 or newer. #3669 - Render
py::bool_
andpy::float_
asbool
andfloat
respectively. #3622
Build system improvements:
- Fix CMake extension suffix computation on Python 3.10+. #3663
- Allow
CMAKE_ARGS
to override CMake args in pybind11's ownsetup.py
. #3577 - Remove a few deprecated c-headers. #3610
- More uniform handling of test targets. #3590
- Add clang-tidy readability check to catch potentially swapped function args. #3611
Files
pybind/pybind11-v2.9.1.zip
Files
(811.6 kB)
Name | Size | Download all |
---|---|---|
md5:917962234952ae00619d64179dd2c440
|
811.6 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/pybind/pybind11/tree/v2.9.1 (URL)