-
Notifications
You must be signed in to change notification settings - Fork 115
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
Make beanstalkc work with Python 3 #13
Comments
I'll be more than happy to redirect https://github.com/menezes-/pystalkd to beanstalkc once we have python3 support. |
Hi @earl, Thanks for the continued interest in making the library as OS comprehensive as possible. Again, I'd love to see the necessary changes merged and version |
Those interested in python 3 support: please test pull request #57. I've tested it myself and travis is green, but more eyeballs won't hurt 😃 |
+1 |
1 similar comment
+1 |
@seveas given that This seems the easiest solution to have a 3.x compatible |
I wouldn't object to doing that, but it's way too early to do such a hostile fork, my PR is only 3 months old. |
Not your work but Python 3.x compatibility for this library has been going on for years: #33. Unless something happens things just appear to have stalled. |
The main open issue related to Python 3 support that still needs to be addressed is that beanstalkc currently is "8-bit transparent" / "binary-clean": you can pass binary data thru beanstalkc & beanstalkd without it getting corrupted. Many beanstalkc users rely on this behaviour, so it's a design issue that needs to be addressed in a Python 3 port as well. |
@arturhoo Unfortunately, 8-bit transparency is not currently tested for in the test suite. |
What does 8-bit transparency testing look like with the current test suite, which looks to be comprised of doctests? Would it be permissible to introduce a dependency like python-future ( |
For me, there are two ways to deal with this:
The second option is implemented in #57. It does not change anything for Python 2, and converts to The first steps of implementing option 2 have being done in #65, but there was way less community interraction about that one, maybe because the implementation has not being finished. @earl do you have any preference between options 1 and 2 above? As the maintener of this repo, you are the one to make that choice I believe. As far as I'm concerned, both options are good, with option 2 having the benefit of being already implemented (with users running that code base). IMHO, the only bad choice is to do nothing about it, as it would divide the community on the long run. Finally, you mentionned this is the main issue, anything else in mind? Several users have already offered their help, so if you find a blocking point somewhere that would need to be adressed, do ask for help if you don't have time to tackle it yourself. |
I didn't say anything about it on #65, but my biggest problem getting to "complete" was getting everything to pass the doctests under both Python 2 and Python 3. The doctests would silently hang under circumstances that were hard for me to predict. My commit at johnchristopherjones/beanstalkc@596b331 was my latest activity along this route. |
Do you have some date for releasing this library that works with Python 3? |
No description provided.
The text was updated successfully, but these errors were encountered: