Hi James - I think you got the wrong mailing list. You want the avro
mailing list - this is Apache TinkerPop

On Sat, Sep 30, 2017 at 2:45 AM, Westover, James <[email protected]>
wrote:

> I have recently taken a stab at making the python3 module support python
> 2. https://github.com/apache/avro/pull/251 I would appreciate if someone
> could look at it.
>
> On 2016-09-06 09:14, David Brown <[email protected]<mailto:[email protected]>>
> wrote:
> > I was reading through the gremlin-python code, and things are looking>
> > good. Currently, it only works with Python 2, but I think that we need>
> > to consider striving for Python 2/3 compatibility in future releases.>
> > It is great to maintain support for Python 2--there is a LOT of Python>
> > 2 code in production, and we don't want to limit the user base.>
> > However, as "Python 3.x is the present and future of the language"[1],>
> > it seems to me that we should shoot for Python 3 compatibility as>
> > well.>
> >
> > In general, using a subset of Python that runs on 2.6+ and 3.3+ is>
> > fairly simple. In the current code base, the "major" change would be>
> > using a 2/3 compatible version of `long`. This is necessary because>
> > Python 3 unifies the integer types `int` and `long` (available in>
> > Python 2) into one type `int` [2]. In making this change, we would>
> > have to consider how to serialize Python 3 integers to GraphSON,>
> > probably using `@type` `int64` by default.>
> >
> > The other question here would be building and testing. It seems to me>
> > that we would want to run the tests against both Python versions,>
> > however, it would be nice if the tests would pass even if someone>
> > doesn't have 3 (or 2) installed on their machine.>
> >
> > Thoughts?>
> >
> > 1. https://wiki.python.org/moin/Python2orPython3>
> > 2. http://python3porting.com/differences.html#long>
> >
> > -- >
> > David M. Brown>
> > R.A. CulturePlex Lab, Western University>
> >
>

Reply via email to