You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2013/10/04 19:29:43 UTC

[jira] [Commented] (AVRO-1382) Support for python3

    [ https://issues.apache.org/jira/browse/AVRO-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13786372#comment-13786372 ] 

Doug Cutting commented on AVRO-1382:
------------------------------------

We should perhaps maintain both python2 and python3 versions simultaneously.  If so, this might happen in a lang/py3 directory or somesuch.

This also might provide the opportunity to make changes that would otherwise be incompatible, but, since this is a new API, wouldn't need to be classified as such.  Issues like AVRO-283 and AVRO-973 come to mind.

> Support for python3
> -------------------
>
>                 Key: AVRO-1382
>                 URL: https://issues.apache.org/jira/browse/AVRO-1382
>             Project: Avro
>          Issue Type: Bug
>          Components: python
>    Affects Versions: 1.7.5
>            Reporter: Christophe Taton
>
> Hi,
> I'd need to use Avro from Python3, which would require essentially the following changes, which I am happy to contribute:
>  - rewrite except statements according to new syntax
>  - rewrite print statements according to new syntax
>  - basestring becomes str
>  - update some imports (StringIO becomes io.StringIO, httplib becomes http.client)
> This would apparently require branching the python code to maintain a version for python2 and a separate version for python3.
> Any thoughts on how to approach this?
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.1#6144)