Working on porting gevent to Python 3.

155 views
Skip to first unread message

JJonte

unread,
Apr 6, 2010, 12:57:42 AM4/6/10
to gevent: coroutine-based Python network library
Hey all,

I'm working on porting gevent to Python 3. I created a fork in the
interim: http://bitbucket.org/jjonte/gevent/

So far it hasn't been too terrible, learning a lot about Cython in the
process. Socket & WSGI are ported so far.

It would be great to get another set of eyes on it, specifically,
socket.py and the way makefile is being handled. I just kind of
hacked it together. The socket implementation has changed
significantly in Python3, _fileobject has gone away completely - so I
just wung it. It works, but I'm sure it's not optimal.
http://bitbucket.org/jjonte/gevent/changeset/5510b07048a7/#chg-gevent/socket.py

Denis Bilenko

unread,
Apr 8, 2010, 7:04:13 AM4/8/10
to gev...@googlegroups.com
Hi Josh,

Thanks for you work!

I did not spot anything wrong with your changes but I don't have any
experience with Py3k.
I'd say if it passes the test suite then it should be alright.

How hard do you think it would be to make gevent run on both Python2.x and 3.x?

Cheers,
Denis.

Reply all
Reply to author
Forward
0 new messages