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

Fix RedisList.__eq__() #476

Merged
merged 3 commits into from
Oct 13, 2021
Merged

Fix RedisList.__eq__() #476

merged 3 commits into from
Oct 13, 2021

Conversation

brainix
Copy link
Owner

@brainix brainix commented Oct 13, 2021

  1. If self is other, return True
  2. If self and other live on the same Redis database with the same key, return True
  3. If self and other are of different lengths, return False
  4. If self and other are both mutable sequences and have the same elements, return True
  5. Otherwise, return False

1. If `self` is `other`, return `True`
2. If `self` and `other` live on the same Redis database with the same
   key, return `True`
3. If `self` and `other` are of different lengths, return `False`
4. If `self` and `other` are ordered and have the same elements, return
   `True`
5. Otherwise, return `False`
@brainix brainix self-assigned this Oct 13, 2021
@brainix brainix added the bug label Oct 13, 2021
@brainix
Copy link
Owner Author

brainix commented Oct 13, 2021

🐟

@brainix brainix merged commit 24033e1 into master Oct 13, 2021
@brainix brainix deleted the redislist-eq branch October 13, 2021 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant