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

Python 3 Support #199

Closed
joshthecoder opened this issue Aug 19, 2012 · 11 comments
Closed

Python 3 Support #199

joshthecoder opened this issue Aug 19, 2012 · 11 comments
Labels
Improvement This is regarding an improvement to an existing feature
Milestone

Comments

@joshthecoder
Copy link
Member

No description provided.

@Aaron1011
Copy link
Contributor

Hello,
I'm definitely interested on working on this. Would you prefer to have a separate branch for Python 3, or to have the existing codebase compatible with Python 2 and 3?

@joshthecoder
Copy link
Member Author

I would prefer a single code base as maintaining multiple branches would be a pain.
Ideally it should work on 2.6/2.7/3.x

@puzzlet
Copy link

puzzlet commented Jun 12, 2013

3.3 it is. Otherwise u'' literals would result a syntax error.

@puzzlet
Copy link

puzzlet commented Jun 12, 2013

Here I've made a quick port to run on Python 3.3: puzzlet@f67e574 which should work on 2.6/2.7 too.

@dbdii407
Copy link

This would be AWESOME! Also with v1.1 support would be amazing. :)

@chhantyal
Copy link

Hi @Aaron1011 and @joshthecoder what's the status of Py3k support? It seems @puzzlet 's patch can work on both version (2.6, 2.7 and 3.3, 3.4). Can we merge it?

@vitawasalreadytaken
Copy link

I had to make a few small changes to @puzzlet's patch to get it working (https://github.com/ze-phyr-us/tweepy/commit/4d6a3c41aee80effbc9b8e256877678ce1641328). In Python 3, ('x' in [b'x']) == False and so in places like OAuthToken.from_string Tweepy couldn't find params in parsed query strings.

However, all tests are still broken in this branch and need porting, too.

@Aaron1011
Copy link
Contributor

Sorry for the delay, everyone. I'm taking a look at it now, and I'll try to fix the failing tests.

@vitawasalreadytaken
Copy link

I'm discovering these small bugs as I'm trying to use Tweepy in a real Python 3.4 project. Today it's cursor iterators :-) https://github.com/ze-phyr-us/tweepy/commit/889cd6234059989f751090c8aa63a328a4741f2d

@prophet555
Copy link

I cloned git, and ran the install, and when I run script I'm getting an error on python 3.4 and windows. (I'm a beginner)
"Can't convert 'bytes' object to str implicitly"

@joshthecoder
Copy link
Member Author

Tweepy 3.0 should now have Python 3 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement This is regarding an improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

8 participants