Got rpyc python3 working, :)

105 views
Skip to first unread message

eyecue

unread,
Mar 15, 2011, 2:06:57 PM3/15/11
to rpyc
A good day,

For the first time fork of rpyc is python3 compatable. It is probably
to early to shout about this, but I'm excited. But in python3.1, rpyc
all 100+ unit tests passing. Worked through most of the tutorial all
seemed to be working. (Only tested on my machines Linux fedoria 14)

source location: github.com/Eyecue/rpyc/tree/py3_0.1

Consider this pre alpha, a few security bits haven't been ported yet
and code needs cleaned up. Note this is python3 only code.


--------------------------Summary of my changes:--------------------

conn.modules.__builtin__ --> conn.modules.builtins # Fits into
the python3 notation better

in the protocol, vinegar etc
import_custom_exceptions, instantiate_custom_exceptions -->
allow_custom_exceptions #Made sense to make to combine these into
one
instantiate_oldstyle_exceptions -> No longer supported (doesn't exist
in python3)

scripts
classic_server.py --> rpyc_classic.py
registry_server.py --> rpyc_registry.py
rpyc_vdbconf.py

brine
my implementation of brine is not secure as it is based on pickle,
tomers immplementaion will be used once it is finsihed.

in async
AsyncResultTimeout --> Async_Timeout_Exception # On a
whim, will probably change this back

KNOWN ISSUES
Got an issue with closing down connections, could be improved.
Don't like the threading, blocking locking model, want to radically
change this. For my use case a stackless python non blocking
implementation would make sense.
The underlying code is not very compatable, lots of renaming and
respacing. I strted this when I thought rpyc was dead.


This work is based off tomerfiliba and Alex Grönholm branches and
their hard work.


Alastair :)





Made a package of above
https://github.com/downloads/Eyecue/rpyc/rpyc-3.1.0-python3-alpha.tar.gz
python3 setup.py install etc....

Tomer Filiba

unread,
Mar 15, 2011, 4:23:23 PM3/15/11
to rp...@googlegroups.com
great news!

could you please rebase your branch on top of my master?
that would make picking your commits into the master easier (otherwise i have to rewrite them)


thanks,
-tomer


An NCO and a Gentleman

eyecue

unread,
Mar 15, 2011, 6:50:51 PM3/15/11
to rpyc
No Problem. I'll rebase at the weekend. I want to clean up my code a
bit first :).

Alastair
> > python3<https://github.com/downloads/Eyecue/rpyc/rpyc-3.1.0-python3-alpha.tar...>setup.py install etc....

eyecue

unread,
Mar 21, 2011, 10:24:56 AM3/21/11
to rp...@googlegroups.com
Was working on a major issue in work, so didn't do any rpyc this weekend.  

Have started cleaning up the code today.  Do you want it rebased off you master branch, or your old master3 branch. The old master3 branch is not on github anymore, I have an old tracker of it it wont have caught any recent changes.

Do note my code is heavy rewrite.  There is going to be a lot of work to make both python2 and python3 compatible.

After the rebase, I'm going to work on the threading, poll, serve model.  I need quite a lot of scalability.

Alastair
Reply all
Reply to author
Forward
0 new messages