Skip to content

Is it possible to use rev() on a PyTupleIterator to achieve reverse iteration? #3364

Discussion options

You must be logged in to vote

We have not yet implemented DoubleEndedIterator for PyTupleIterator which should however be possible. I will open a PR to fix this.

As workaround, maybe PyTuple::as_slice would work for you? Or in the worst case, using PyTuple::get_item to manually index into the tuple?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AphrosDelos532
Comment options

@adamreichold
Comment options

Answer selected by AphrosDelos532
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants