The looming Python 3(000) monster

Toshio Kuratomi a.badger at gmail.com
Fri Dec 5 18:51:19 UTC 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20081205/d3905dd7/attachment.bin 


More information about the devel mailing list