pybind11/include/pybind11/detail
Ralf W. Grosse-Kunstleve 654fe92652
Introduce get_python_state_dict() for Python 3.12 compatibility. (#4570)
* Introduce `get_python_state_dict()`

* Conditional version bump for Python 3.12+

* Shuffle subexpressions to make the condition easier to understand (no change to logic).

* Make pybind11 ABI version 5 the minimum for Python 3.12+ (as suggested by @Lalaland)

* Add back condition for PYPY_VERSION, but keep it open for future PyPy versions.

* Fall back to simple `|| defined(PYPY_VERSION)`. `PY_VERSION_HEX` does not appear to be meaningful with PyPy.
2023-03-27 17:52:57 -07:00
..
class.h Make sure to properly untrack gc objects before freeing them (#4461) 2023-01-18 12:11:26 -08:00
common.h bugfix: allow noexcept lambdas in C++17. Fix #4565 (#4593) 2023-03-27 20:21:06 -04:00
descr.h chore: make #4587 use proper cpp17 feature macro (#4592) 2023-03-27 10:59:56 -04:00
init.h chore(deps): update pre-commit hooks (#4386) 2022-12-06 10:10:48 -08:00
internals.h Introduce get_python_state_dict() for Python 3.12 compatibility. (#4570) 2023-03-27 17:52:57 -07:00
type_caster_base.h Correct class names for KeysView, ValuesView and ItemsView in bind_map (#4353) 2022-12-08 23:15:11 -08:00
typeid.h Add std::string clean_type_id(const char *typeid_name) overload (in namespace detail). (#4049) 2022-07-07 19:08:10 -07:00