[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: The looming Python 3(000) monster

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.


Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]