pybind11/include/pybind11/detail
Aaron Gokaslan 42a8e31253
Improve Python 3.11 support (#3694)
* Test out Python 3.11 migration

* Clean up a bit

* Remove todo

* Test workaround

* Fix potential bug uncovered in 3.11

* Try to fix it more

* last ditch fix

* Revert. Tp-traverse isn't the problem

* Test workaround

* Try this hack

* Revert MRO changes

* Use f_back properly

* Qualify auto

* Update include/pybind11/pybind11.h

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Simplify code slightly

* Ensure co_varnames decref if dict_getitem throws

* Eager decref f_code

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-03-02 13:17:52 -05:00
..
class.h ci: fix PyPy (#3768) 2022-03-01 12:42:52 -05:00
common.h Fix exception handling when pybind11::weakref() fails. (#3739) 2022-02-18 14:12:00 -05:00
descr.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
init.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
internals.h Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 2022-02-10 18:28:08 -08:00
type_caster_base.h Improve Python 3.11 support (#3694) 2022-03-02 13:17:52 -05:00
typeid.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00