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

Hudson commented on AVRO-1788:
------------------------------

SUCCESS: Integrated in Jenkins build AvroJava #749 (See 
[https://builds.apache.org/job/AvroJava/749/])
AVRO-1788: Remove Obsolete Python < 2.7 Syntax (#683) (fokko: 
[https://github.com/apache/avro/commit/edbf413e56c7f04b4a6291f94c2193ff2620a735])
* (edit) lang/py/src/avro/constants.py
* (edit) lang/py/test/word_count_task.py
* (edit) lang/py/src/avro/tool.py
* (edit) lang/py/test/gen_interop_data.py
* (edit) lang/py/test/test_tether_task.py
* (edit) lang/py/test/test_tether_word_count.py
* (edit) lang/py/scripts/avro
* (edit) lang/py/test/test_datafile_interop.py
* (edit) lang/py/src/avro/tether/tether_task_runner.py
* (edit) lang/py/src/avro/__init__.py
* (add) lang/py/test/__init__.py
* (edit) lang/py/src/avro/tether/util.py
* (edit) lang/py/test/test_ipc.py
* (edit) lang/py/test/mock_tether_parent.py
* (edit) lang/py/test/test_datafile.py
* (edit) lang/py/test/test_tether_task_runner.py
* (edit) lang/py/test/txsample_http_client.py
* (edit) lang/py/src/avro/tether/__init__.py
* (edit) lang/py/test/txsample_http_server.py
* (edit) lang/py/test/test_io.py
* (edit) lang/py/src/avro/protocol.py
* (edit) lang/py/test/sample_http_server.py
* (edit) lang/py/src/avro/io.py
* (edit) lang/py/test/av_bench.py
* (edit) lang/py/test/test_script.py
* (edit) lang/py/src/avro/txipc.py
* (edit) lang/py/test/sample_http_client.py
* (edit) lang/py/test/test_schema.py
* (edit) lang/py/src/avro/tether/tether_task.py
* (edit) lang/py/src/avro/datafile.py
* (edit) lang/py/setup.py
* (edit) lang/py/test/set_avro_test_path.py
* (edit) lang/py/test/test_protocol.py
* (edit) lang/py/src/avro/ipc.py
* (edit) lang/py/src/avro/timezones.py
* (edit) lang/py/src/avro/schema.py


> python api differs unnecessarily between python2 and python3
> ------------------------------------------------------------
>
>                 Key: AVRO-1788
>                 URL: https://issues.apache.org/jira/browse/AVRO-1788
>             Project: Apache Avro
>          Issue Type: Wish
>          Components: python
>            Reporter: Alexander Hasha
>            Assignee: Michael A. Smith
>            Priority: Minor
>             Fix For: 1.10.0
>
>
> It is difficult to use the python avro module in projects that maintain 
> simultaneous compatibility between python 2 and python 3, because there are 
> small differences in the API between the two versions in the module that seem 
> unnecessary.
> For example, to parse a schema string in python 2:
> {code}
> from avro.schema import parse
> {code}
> and in python 3:
> {code}
> from avro.schema import Parse
> {code}
> In Python2, DatumReader's constructor has keyword argument "writers_schema", 
> and in Python 3 it becomes "writer_schema" (no s).
> Would it be possible to align method names and arguments across the two 
> modules?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to