[Python-3000] PEP 3105 "Backward Compatibility"

Guido van Rossum guido at python.org
Fri Oct 12 22:25:46 CEST 2007


Good point. I added a few examples to the PEP.

--Guido

On 10/12/07, James Thiele <python3now at gmail.com> wrote:
> I was reading PEP 3105 -- Make print a function and in the section
> "Backwards Compatibility" found the following statement:
> "The changes proposed in this PEP will render most of today's print
> statements invalid, only those which incidentally feature parentheses
> around all of their arguments will continue to be valid Python syntax
> in version 3.0."
> --
> They may both be valid syntax, but they may not do  the same thing:
> $ python
> Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
> >>> print (1,2)
> (1, 2)
> >>>
> $ python3.0
> Python 3.0a1 (py3k:57844, Aug 31 2007, 08:01:11)
> >>> print (1,2)
> 1 2
> --
> It might be useful to note this in the PEP.
>
> James
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list