mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-31 15:20:34 +00:00
f7685826e2
Before this, `py::iterator` didn't do any error handling, so code like: ```c++ for (auto item : py::int_(1)) { // ... } ``` would just silently skip the loop. The above now throws `TypeError` as expected. This is a breaking behavior change, but any code which relied on the silent skip was probably broken anyway. Also, errors returned by `PyIter_Next()` are now properly handled. |
||
---|---|---|
.. | ||
pybind11 |