The looming Python 3(000) monster

Toshio Kuratomi a.badger at gmail.com
Fri Dec 5 19:25:05 UTC 2008


Arthur Pemberton wrote:
> 
> Is there not a subset of features which exist in both 2.5 and 3.0
> which can be used in 2.6?
> 

Trivial code can work but I wouldn't bet on any applications (with all
their library dependencies) being able to work in both 2.5 and 3.0.
Some things are a lot of work: you can't easily deal with methods in the
stdlib changing between 2.x and 3.x except to write your own version or
either the 3.x or 2.x version.

Other things are changed at a deep level.  For instance, str and unicode
in python2.x has become bytes and str(an abstract unicode type) in
python3.x.  Even with the 3.x compat mode in python 2.6 there's things
that have subtle bugs.  Attempting to write code compatible with both
2.5 and 3.0 will fail miserably.

-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://listman.redhat.com/archives/fedora-devel-list/attachments/20081205/e64f3fef/attachment.sig>


More information about the fedora-devel-list mailing list