I strongly dislike Python 3

Stephen Hansen me+list/python at ixokai.io
Mon Jun 28 16:50:46 EDT 2010


On 6/28/10 1:30 PM, geremy condra wrote:
> On Mon, Jun 28, 2010 at 1:08 PM, Edward A. Falk<falk at green.rahul.net>  wrote:
>> In article<mailman.2270.1277736664.32709.python-list at python.org>,
>> Stephen Hansen<me+list/python at ixokai.io>  wrote:
>>>
>>> No one said otherwise, or that print was useless and never used in such
>>> contexts.
>>
>> I was responding to the question "Also, do you use print *that*
>> much? Really?"  The implication being that in the majority of useful
>> python programs, you don't really need to use print.
>>
>> My answer is yes, I use print in 100% of the scripts I write, including
>> the large useful ones.
>>
>> For this reason alone, python 3 is incompatible with python 2 (which
>> has already been acknowledged.)
>>
>> Until such time as 100% of the systems I might ever want to run my progams
>> on have python 3 installed, I cannot port my programs over from python 2.
>
> Uhmm, just add the parenthesis to your old scripts. You can
> do that without breaking on 2.x.

Only sort of. But in Python 2.6+, you only need to "from __future__ 
import print_function" to make code work in both 2.x and 3.x (at least 
insofar as the print situation is concerned).	

-- 

    ... Stephen Hansen
    ... Also: Ixokai
    ... Mail: me+list/python (AT) ixokai (DOT) io
    ... Blog: http://meh.ixokai.io/




More information about the Python-list mailing list