Why has python3 been created as a seperate language where there is still python2.7 ?

Devin Jeanpierre jeanpierreda at gmail.com
Tue Jun 26 02:15:17 EDT 2012


On Mon, Jun 25, 2012 at 11:35 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> There's no real difference between typing print(...) and all the other
> functions in Python. Do you lament having to type len(obj) instead of
> "len obj" or list(zip(a, b, c)) instead of "list zip a b c"?

Surely you mean "list $ zip a b c"? ;)

But yes, it's really not a big deal. It's a trivial change, and one
that 2to3 can handle really easily.

>
> Making print a statement in the first place was a mistake, but
> fortunately it was a simple enough mistake to rectify once the need for
> backward compatibility was relaxed.

Hmmm, why is the function so much better than the statement? You like
using it in expressions? Or is it that you like passing it in as a
callback?

-- Devin



More information about the Python-list mailing list