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

Python3 support needed #33

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

Conversation

wiinnie-the-pooh
Copy link

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.
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