mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 23:22:01 +00:00
b4b2292488
object_api::operator[] has a powerful overload for py::handle that can accept slices, tuples (for NumPy), etc. Lists, sequences, and tuples provide their own specialized operator[], which unfortunately disables this functionality. This is accidental, and the purpose of this commit is to re-enable the more general behavior. This commit is tangentially related to the previous one in that it makes py::handle/py::object et al. behave more like their Python counterparts. |
||
---|---|---|
.. | ||
pybind11 |