Skip to content

Conversation

@vanossj
Copy link
Contributor

@vanossj vanossj commented Dec 29, 2017

tests and fixes #1228

@jagerman
Copy link
Member

The fix looks good to me. Was map deletion completely broken in all cases? I'm surprised that we really didn't have any map del tests--thanks very much for fixing that test suite oversight (along with the core issue).

@jagerman jagerman added this to the v2.2.2 milestone Dec 29, 2017
@vanossj
Copy link
Contributor Author

vanossj commented Dec 29, 2017

I didn't try a ton of cases, but I didn't find any that worked either.

@jagerman jagerman merged commit 05d379a into pybind:master Jan 11, 2018
@jagerman
Copy link
Member

Merged, thanks for the PR!

jagerman pushed a commit to jagerman/pybind11 that referenced this pull request Jan 12, 2018
Fix return from `std::map` bindings to `__delitem__`: we should be returning `void`, not an iterator.

Also adds a test for map item deletion.
wjakob pushed a commit that referenced this pull request Feb 7, 2018
Fix return from `std::map` bindings to `__delitem__`: we should be returning `void`, not an iterator.

Also adds a test for map item deletion.
@vanossj vanossj deleted the return-none-from-map-delitem branch September 14, 2018 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cast error for __delitem__ bindings to map and unordered_map

2 participants