[protobuf] Python3 Protobufs

2012-09-24 Thread Charles Law
I've made an attempt to create a Python3 compatible version of protobufs. I have some code that passes pretty much all the unit tests which I've posted here: https://github.com/openx/python3-protobuf I probably won't have a chance to look at this again for a couple weeks if not longer, so I w

[protobuf] Re: Python3 Protobufs

2012-09-25 Thread Charles Law
Python3, all strings are unicode, so should this limit only exist in Python 2.x? On Friday, September 21, 2012 6:16:41 PM UTC-7, Charles Law wrote: > > I've made an attempt to create a Python3 compatible version of protobufs. > I have some code that passes pretty much all the unit te

[protobuf] Re: Python3 Protobufs

2012-10-01 Thread Charles Law
I assumed that the type/value errors are no longer valid in Python 3, so I removed the 3 checks in reflection_test.testStringUTF8Encoding(). All unit tests now pass! On Tuesday, September 25, 2012 1:47:09 PM UTC-7, Charles Law wrote: > > I thought about this a little, and realized tha

[protobuf] Testing using multiple languages

2012-11-12 Thread Charles Law
I have a python 3 version of protobufs that I want to test. It passes all the unittests, so I know it can decode what it encodes, but I want to test it that it can talk to clients written in other languages. I noticed when I was making the python 3 version, I had some mistakes in the encoder t

[protobuf] Re: Python3 Protobufs

2012-12-06 Thread Charles Law
nto the Riak library and change a bunch of imports, for example import riak_pb2 --> import riak_py3_pb2 as riak_pb2. On Monday, October 1, 2012 4:13:11 PM UTC-7, Charles Law wrote: > > I assumed that the type/value errors are no longer valid in Python 3, so

Re: [protobuf] python 3.x

2013-03-07 Thread Charles Law
I did some work on this a few months back. If you search the mailing list for python3 (no space) you can find the thread. The work I did is pretty rough - it was mostly a proof on concept. I have a repo that generates python3 files with the suffix pb2_py3. My code passes all the unittests an

[protobuf] Re: Python3 Protobufs

2013-03-21 Thread Charles Law
and 3.3. I > have used a single-source approach (which is only really feasible starting > with those two for syntax compatibility reasons). > > Python 2.4, 2.5 and I believe even 2.6 simply aren't going to work. It's > too much effort. > > \malthe > > On Sat

Re: [protobuf] python 3.x

2013-03-21 Thread Charles Law
I have the python 2.6+ & 3.2+ compatible code done. Search the mailing list for python3 (no space) for more details. On Thursday, March 7, 2013 1:05:59 PM UTC-8, Charles Law wrote: > > I did some work on this a few months back. If you search the mailing list > for python3 (no s

[protobuf] Re: Python3 Protobufs

2013-08-22 Thread Charles Law
I'd be interested in getting this done. I do want it merged in at some point & this will only make it easier. Since I did some of the translation at work I'm talking to legal about getting the contributor license agreement signed. Free time is very rare though. It might (not for sure, but ju