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

Don't allow a RedisDeque to equal a RedisList... #576

Merged
merged 8 commits into from
Dec 31, 2021
Merged

Conversation

brainix
Copy link
Owner

@brainix brainix commented Dec 31, 2021

...even if they're both on the same Redis instance and have the same
key.

Before this PR:

>>> from pottery import RedisDeque, RedisList
>>> RedisDeque(key='videos:dicts') == RedisList(key='videos:dicts')
True

As of this PR:

>>> from pottery import RedisDeque, RedisList
>>> RedisDeque(key='videos:dicts') == RedisList(key='videos:dicts')
False

...even if they're both on the same Redis instance and have the same
key.

Before this PR:

```python
>>> from pottery import RedisDeque, RedisList
>>> RedisDeque(key='videos:dicts') == RedisList(key='videos:dicts')
True
```

As of this PR:

```python
>>> from pottery import RedisDeque, RedisList
>>> RedisDeque(key='videos:dicts') == RedisList(key='videos:dicts')
False
```
@brainix brainix changed the title Make RedisList.__eq__() more clear Don't allow a RedisDeque to equal a RedisList... Dec 31, 2021
@brainix brainix self-assigned this Dec 31, 2021
@brainix brainix added the bug label Dec 31, 2021
@brainix
Copy link
Owner Author

brainix commented Dec 31, 2021

🐟

@brainix brainix merged commit 97ad704 into master Dec 31, 2021
@brainix brainix deleted the redislist-equality branch December 31, 2021 10:50
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.

1 participant