pybind11
pybind11 copied to clipboard
Support arbitrary type in item accessor's subscript operator
@woodychow Seems this change breaks some tests in pypy for some reason.
- trying to add tests as https://github.com/pybind/pybind11/pull/4007
- seems we cannot access py::tuple as object (i.e. PyObject_GetItem) for new ones, unlike PyTuple_GetItem. So I fixed the test accordingly.
[edit] for py2 compatible version, https://github.com/cielavenir/pybind11/actions/workflows/ci.yml runs because the branch name starts from "v", and it seems roughly working ( https://github.com/cielavenir/pybind11/actions/runs/2500434793 ).