In a message of Mon, 02 Nov 2015 01:27:24 +1100, Chris Angelico writes:
>On Mon, Nov 2, 2015 at 1:11 AM,  <paul.hermeneu...@gmail.com> wrote:
>> On Nov 1, 2015 2:45 AM, "Chris Angelico" <ros...@gmail.com> wrote:
>>>
>>> I'm proud to say that a Python tutoring company has just converted its
>>> course over from teaching Python 2.7 to teaching 3.x. For the
>>> naysayers out there, it actually wasn't much of a transition;
>>
>> This would make an excellent opportunity to develop a curriculum to teach
>> students how to maintain a 2.x and 3.x code base using 2to3.
>>
>> 2.x is not going away as fast as some would like.

>I'd rather not use 2to3 there. If you want to maintain a library that
>can be used from 2.x and 3.x, it's much better to aim for the
>compatible middle - u prefixes on all Unicode strings, b prefixes on
>all byte strings, stick to ASCII where possible, etc, etc. Much easier
>than writing code for one branch and then converting to the other.

How about using six, same idea with the curriculum?

Laura
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to