Uh oh!
There was an error while loading. Please reload this page.
Adds check if str(handle) correctly converted the object, and throw py::error_already_set if not. - #2473
Adds check if str(handle) correctly converted the object, and throw py::error_already_set if not.#2473rwgk wants to merge 2 commits into
str(handle) correctly converted the object, and throw py::error_already_set if not.#2473Conversation
Expanding test coverage only, no behavior change.
… 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.
YannickJadoul
commented
Sep 9, 2020
Why doesn't this just cherry-pick the originally merged commit from my original PR where I debugged and fixed the issue, bd8f366? That way, all references and original authors are kept, and it is linked to the review process in #2392. Apart from that, #2392 already went through a review process. Is this the exact same patch as #2392? Again, cherry-picking bd8f366 to Let me also mention #2348 again, since it shows the relation to other |
rwgk
commented
Sep 10, 2020
No worries @YannickJadoul, I was just trying to rescue your work in a timely fashion. Please feel free to do it yourself, as suggested a few days ago in the slack chat, at your pace. I'll close the PR. In the meantime I backed out this change from #2409 (the test change is a little different) and re-ran the Google-global testing. The very minor behavior change related to this PR had no impact at all. (With that #2409 is purely a change to make I will delete my branch. I don't know if the view of the diffs survives the delete. Here is the test change as under this PR (it's slightly different from your version), JIC it's useful: |
YannickJadoul
commented
Sep 10, 2020
No, you're right, I did completely forget about this! The commit is quite distinct and can be merged. Should I just cherry pick and push to |
YannickJadoul
commented
Sep 10, 2020
Oh, wait, so there is a difference I couldn't spot! Let's salvage that, then. |
Similar to #2392, but does not depend on #2409.
Splitting out this PR from #2409 to make that PR as simple as possible.
Net effects of this PR:
This PR has two commits. Please do not squash, to make the behavior change obvious in the commit history.