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

Moving to python3 #34

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Moving to python3 #34

wants to merge 18 commits into from

Conversation

Zdrul
Copy link

@Zdrul Zdrul commented Apr 11, 2022

No description provided.

johbo and others added 18 commits June 25, 2016 13:59
It provides a nice overview of the tweaks which we see in the codebase,
so that it supports both Python2 and Python3.
Background idea is that we use string types as switch names and if we do
this consistently, then the keys can be encoded into bytes objects.

At least the RedisDict as storage will otherwise happily take str
instances and return bytes instances. Result is that the Manager cannot
find the switches anymore and we see issues due to mixing up str and
bytes.
__cmp__ is ignored and cmp() is gone. Only one way left to compare.
@Zdrul Zdrul marked this pull request as ready for review April 11, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants