myths about python 3

Edward A. Falk falk at mauve.rahul.net
Wed Jan 27 18:50:19 EST 2010


In article <mailman.1470.1264588330.28905.python-list at python.org>,
Daniel Fetchinson  <fetchinson at googlemail.com> wrote:
>Hi folks,
>
>1. Print statement/function creates incompatibility between 2.x and 3.x!
>
>Certainly false or misleading, if one uses 2.6 and 3.x the
>incompatibility is not there. Print as a function works in 2.6:

Yes, but does print as a statement work?

Your argument is that python 2.x code can be ported to 3.x and still
run under 2.6 if you're careful about how you do the port.  That's
not the same as saying they're compatible.


>2. Integer division creates incompatibility between 2.x and 3.x!

Same as above.  Saying you can make it work by rewriting your code
is not the same as saying that it works.


If they'd wanted wide adoption of python 3, they should have made it
as compatible as possible with python 2 code.  If they dropped the
print statement, then they did not do so.
-- 
	-Ed Falk, falk at despams.r.us.com
	http://thespamdiaries.blogspot.com/



More information about the Python-list mailing list