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

ASF GitHub Bot commented on THRIFT-4309:
----------------------------------------

Github user cclauss commented on the issue:

    https://github.com/apache/thrift/pull/1339
  
    @jeking3 All of the __print() is a function__ changes are ESSENTIAL Python 
3 compatibility.  This is not optional.  See: 
https://docs.python.org/3/whatsnew/3.0.html
    
    The reason that you are not seeing any problems in the build is because 
Python is a dynamic, interpreted language.  It does not have a separate compile 
step like C/C++ and other compiled languages have.  This in turn means that 
syntax errors are not found at "build" time but that they are only found at 
runtime.  This in turn explains why flake8 is better tool for spotting these 
problems than pylint.  flake8 uses the Abstract Syntax Tree process to do 
simulate runtime while pylint does not.


> All Python files should be compatible with Python 3
> ---------------------------------------------------
>
>                 Key: THRIFT-4309
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4309
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Python - Compiler, Python - Library
>            Reporter: cclauss
>            Priority: Minor
>   Original Estimate: 672h
>  Remaining Estimate: 672h
>
> Python 3 is now 8 years old and is the current and future of the language.  
> Examples and other Python files in this project should be compatible with 
> Python 3 and where possible also with Python 2.
> https://docs.python.org/3/howto/pyporting.html is one of many guides on the 
> topic.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to