-
Notifications
You must be signed in to change notification settings - Fork 181
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
Remove _ex_keys
mapping
#128
Conversation
4 similar comments
Thanks for the pull request. Per the contributing guidelines, can you add a test that demonstrates the bug? That way we can verify this fixes the issue and prevent regressions in the future. Thanks. |
The fix is deprecating any test I could provide since I'm removing |
I think the test, |
@ticosax |
Because they can get out of sync under python3 since `_dict` entries are converted into bytes while `_ex_keys` aren't and ```b'foo' != 'foo'``` under python 3. Instead of trying to convert back and forth between `bytes` and `str` in different places, this new implementation stores everything in `_dict` and makes sure values and timestamp are always stored together.
thank you @blueyed for the reminder. |
I've created a fork called fakenewsredis with a PyPI release to incorporate PRs that aren't getting traction here. I've included this PR. |
Because they can get out of sync under python3 since
_dict
entries are converted into bytes while_ex_keys
aren'tand
b'foo' != 'foo'
under python 3.Instead of trying to convert back and forth between
bytes
andstr
in different places,this new implementation stores everything in
_dict
andmakes sure values and timestamp are always stored together.