Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support move-only iterators in py::make_*iterator #4834

Merged
merged 5 commits into from Sep 7, 2023

Conversation

sizmailov
Copy link
Contributor

@sizmailov sizmailov commented Sep 4, 2023

Description

Support heavy (move-only) iterators in py::make_iterator, py::make_key_iterator, py::make_value_iterator

Suggested changelog entry:

Support move-only iterators in ``py::make_iterator``, ``py::make_key_iterator``, ``py::make_value_iterator``

@rwgk
Copy link
Collaborator

rwgk commented Sep 6, 2023

Note: the added test covers only py::make_iterator but not py::make_key_iterator, py::make_value_iterator

Wow, the new test case really is very cumbersome. Is that why you didn't cover the other two? I know I may be asking a lot, but could you try anyway?

Could it make sense in this particular case to simply modify some existing key and value iterator tests?

Copy link
Collaborator

@rwgk rwgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks a lot for finding this way to get full test coverage!

@sizmailov
Copy link
Contributor Author

@rwgk Thanks for the hint! I like it much better now.

@rwgk rwgk merged commit c836059 into pybind:master Sep 7, 2023
85 checks passed
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Sep 7, 2023
@sizmailov sizmailov deleted the support-move-only-iterators branch September 7, 2023 13:01
@henryiii henryiii changed the title feature: Support move-only iterators in py::make_*iterator feat: Support move-only iterators in py::make_*iterator Nov 15, 2023
@henryiii henryiii removed the needs changelog Possibly needs a changelog entry label Mar 27, 2024
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.

None yet

3 participants