The looming Python 3(000) monster
Arthur Pemberton
pemboa at gmail.com
Fri Dec 5 18:58:22 UTC 2008
2008/12/5 Toshio Kuratomi <a.badger at gmail.com>:
> Matej Cepl wrote:
>>
>> The party line is that you should develop against python 2.6
>> (which doesn't block you from being compatible with Python 2.3)
>> and then conversion from 2.6 to 3.* would be guaranteed to be
>> done just with a script.
>>
> The guarantee that 2to3 will convert your code does not exist.
>
> Additionally to be more compatible with 3.x syntax, you have to enable
> 3.x features in python-2.6. Use of those features will make your code
> incompatible with python <= 2.5.
>
> So you either have 2.x compatible code or 3.x compatible code not both
> (even including the script).
>
> -Toshio
Is there not a subset of features which exist in both 2.5 and 3.0
which can be used in 2.6?
--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )
More information about the fedora-devel-list
mailing list