Changes:
scoped_interpreter
constructor takingPyConfig
. #4372pybind11/eigen/tensor.h
adds converters to and fromEigen::Tensor
andEigen::TensorMap
#4201PyGILState_Check()
's were integrated topybind11::handle
inc_ref()
&dec_ref()
. The added GIL checks are guarded byPYBIND11_ASSERT_GIL_HELD_INCREF_DECREF
, which is the default only ifNDEBUG
is not defined. #4246- Add option for enable/disable enum members in docstring. #2768
- Fixed typing of
KeysView
,ValuesView
andItemsView
inbind_map
. #4353
Bug fixes:
- Bug fix affecting only Python 3.6 under very specific, uncommon conditions: move
PyEval_InitThreads()
call to the correct location. #4350 - Fix segfault bug when passing foreign native functions to functional.h. #4254
Build system improvements:
- Support setting PYTHON_LIBRARIES manually for Windows ARM cross-compilation (classic mode). #4406
- Extend IPO/LTO detection for ICX (a.k.a IntelLLVM) compiler. #4402
- Allow calling
find_package(pybind11 CONFIG)
multiple times from separate directories in the same CMake project and properly link Python (new mode). #4401 multiprocessing_set_spawn
in pytest fixture for added safety. #4377- Fixed a bug in two pybind11/tools cmake scripts causing "Unknown arguments specified" errors. #4327