There is a newer version of the record available.

Published February 3, 2022 | Version v2.9.1
Software Open

pybind/pybind11: Version 2.9.1

  • 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 to TypeError 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_ and py::float_ as bool and float 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 own setup.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