[Python-3000] PEP 3105 "Backward Compatibility"

James Thiele python3now at gmail.com
Fri Oct 12 21:37:24 CEST 2007


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


More information about the Python-3000 mailing list