Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Implement 'reversed' for custom __reversed__ #546

Merged
merged 1 commit into from
May 25, 2017

Conversation

Nurdok
Copy link
Contributor

@Nurdok Nurdok commented May 25, 2017

From the docs:

reversed(seq)
Return a reverse iterator. seq must be an object which has a __reversed__() method or supports the sequence protocol (the __len__() method and the __getitem__() method with integer arguments starting at 0).

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

♻️

@freakboy3742 freakboy3742 merged commit e6af8ac into beeware:master May 25, 2017
@Nurdok Nurdok deleted the feature/reversed branch May 25, 2017 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants