Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98047

Re: Python 2 vs Python 3 for teaching

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Laura Creighton <lac@openend.se>
Newsgroups comp.lang.python
Subject Re: Python 2 vs Python 3 for teaching
Date Sun, 01 Nov 2015 15:49:37 +0100
Lines 22
Message-ID <mailman.24.1446389385.4463.python-list@python.org> (permalink)
References <CAPTjJmoPtk30rzoDOFnN5evRrd3kDtvie1E1F0Wu_DxWTsc+jA@mail.gmail.com> <CAJ4+4apy=ibu4r6d5vj707xoLYEty7MdaOtE+9oi3VOnehB+XA@mail.gmail.com> <CAPTjJmo+st5-iUZ0Fie7EZ7YnGjWioTpLDqFdOm359g521YwhQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
X-Trace news.uni-berlin.de 2Q8BkmVr/DcN7ymGSAAYfwWb/fPhD2Wrk4Tlq5XWSqzw==
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'cc:addr:python-list': 0.09; '2to3': 0.09; 'prefixes': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'python': 0.10; '2.7': 0.13; '>on': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'tutoring': 0.16; 'wrote:': 0.16; 'byte': 0.18; 'laura': 0.18; 'stick': 0.18; '>>>': 0.20; 'library': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; '2.x': 0.22; '3.x': 0.22; 'ascii': 0.22; 'converted': 0.22; 'cc:no real name:2**0': 0.22; 'am,': 0.23; 'mon,': 0.24; 'chris': 0.26; 'converting': 0.27; 'idea': 0.28; 'received:se': 0.29; 'strings,': 0.29; 'there.': 0.30; "i'm": 0.30; 'code': 0.30; 'branch': 0.30; 'nov': 0.35; 'possible,': 0.35; 'unicode': 0.35; "wasn't": 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'say': 0.37; 'charset:us- ascii': 0.37; 'rather': 0.39; 'where': 0.40; 'some': 0.40; 'company': 0.60; 'header:Message-Id:1': 0.61; 'course': 0.62; 'other.': 0.64; 'teaching': 0.69; 'teach': 0.70; '2:45': 0.84; 'etc,': 0.84; 'header:In-reply-to:1': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1446389379; bh=kgZW+kgaR9CbbAU3NtpS5yVME3n2at+6hWj4Ahs5a2Q=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=VESwCIxfBgUNqS95lGtW4xgyXQqu1qSymK5w3yeox1QHlHrSmT4PAWw2IGxzZRk6q xi7IJqHS9HJwSqulyZz3gwlzIpV2ZGCl6gErIvnpsAqbDzLHRPaomx4XUtEocq9qLe oG6kHSvWBJxkOiS3xCM0qPWjRzxMaVtb4GHIMAi0=
In-reply-to <CAPTjJmo+st5-iUZ0Fie7EZ7YnGjWioTpLDqFdOm359g521YwhQ@mail.gmail.com>
Comments In-reply-to Chris Angelico <rosuav@gmail.com> message dated "Mon, 02 Nov 2015 01:27:24 +1100."
Content-ID <24175.1446389377.1@fido>
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Sun, 01 Nov 2015 15:49:39 +0100 (CET)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:98047

Show key headers only | View raw


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.hermeneutic@gmail.com> wrote:
>> On Nov 1, 2015 2:45 AM, "Chris Angelico" <rosuav@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Python 2 vs Python 3 for teaching Laura Creighton <lac@openend.se> - 2015-11-01 15:49 +0100

csiph-web