You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds check if str(handle) correctly converted the object, and throw py::error_already_set if not.
Similar to pybind#2392, but does not depend on pybind#2409.
Splitting out this PR from pybind#2409 to make that PR as simple as possible.
Net effects of this PR:
* Adds missing test coverage.
* Changes TypeError to UnicodeDecodeError for Python 2.
This PR has two commits. Please do not squash, to make the behavior change obvious in the commit history.
0 commit comments