Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Guido on python3 for beginners Date: Thu, 18 Feb 2016 20:57:17 +1100 Lines: 24 Message-ID: References: <48762040-a7e0-434c-92e8-8a0969210e5b@googlegroups.com> <5d31dd14-1a60-4f80-8889-d0616f404c70@googlegroups.com> <4e902c58-3370-4adf-905d-74630a6eea90@googlegroups.com> <60036746-78f7-4f05-a6d8-04e88b09c00f@googlegroups.com> <032f0f66-34df-4325-98e0-1127025d2a94@googlegroups.com> <31a618b2-a407-4723-9a4f-9b756fc93b0b@googlegroups.com> <0a920e92-5d31-4866-815b-cae7e201e4d8@googlegroups.com> <56c568f2$0$2832$c3e8da3$76491128@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de +VzX3JhOlo1yaifdLbcNjAqg5AC0CsHcR0H2x+/U1G5A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'part,': 0.09; 'prefixes': 0.09; 'worse': 0.09; 'language,': 0.11; '"this': 0.13; '2.7': 0.13; 'thu,': 0.15; '(and,': 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hmm.': 0.16; 'old-style': 0.16; 'overlaps': 0.16; 'programmers,': 0.16; 'py3': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'reedy': 0.16; 's/he': 0.16; 'similarly,': 0.16; 'subject:python3': 0.16; 'suffixes': 0.16; 'valueerror,': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'saying': 0.22; 'year,': 0.22; '3.x': 0.22; 'feb': 0.23; 'bigger': 0.23; 'header:In-Reply-To:1': 0.24; 'question': 0.27; 'message- id:@mail.gmail.com': 0.27; 'said,': 0.27; 'mind,': 0.29; 'subset': 0.29; 'classes': 0.30; 'code': 0.30; "i'd": 0.31; 'related': 0.32; 'though,': 0.32; 'common': 0.33; 'list': 0.34; 'received:google.com': 0.35; 'text': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'version': 0.38; 'received:209': 0.38; 'still': 0.40; 'ever': 0.60; 'here.': 0.62; 'better.': 0.66; 'improvements': 0.66; 'numerous': 0.66; "they're": 0.66; 'potentially': 0.67; 'today.': 0.67; 'teaching': 0.69; 'obtained': 0.76; 'removal': 0.79; 'chrisa': 0.84; 'strings)': 0.84; 'to:none': 0.91; 'improvement': 0.93; 'taught': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=3VjFQOwxSq8yXUWwKryLKrM50VwuyohPJBh1vq29SW0=; b=EbXelqWyYLR1OaJ6Ivc0E1LfDCSv3vxkg57JVi5nc2mgDqn2XU+VBFKXRu1YwDmTD4 eVOtM5IS8FqZIWdG9zXOZQe8nAiBsmZwnlJuTLRMzZfsLOuE42nzmjiZ58xj6tHPtMr/ 42Pbi5df5Na/8TTgsEXQcjDMh6F8kq1NFXOeRCrrWksQIE+a7pzLkl1tYEZ/rO9ylu3l UOJngEe/nEvSm0aRyZrrR8wyBHFO7KdA+LWKb1qs69h1XwuV3aGtFh6ZeSwzDVCgen4l LG3Yn3ATTNDtPsfCGFxZ5LfdvBjhHXRx5szevrWHv1avZLK3uO+WjgpMWVXB85VirfCM WGKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc:content-type; bh=3VjFQOwxSq8yXUWwKryLKrM50VwuyohPJBh1vq29SW0=; b=JTla8M7uc16TBNfYNSW5NE4Me/lJRgqloUdAQgyY2mzr+xhDtM7xNOOQFRAlOvN/8E A0r097prETvo15FVbutlFVX/MSqvp9MUbC63IdQ0RuhpS23CvgsY4Pt8VLnC0Pmzar7h y2fBesGjjAvocNFlQWgliR99/QGKZa5x/lkBfoJEbkjNQ9u5dounwCv21fKF3WBGGH8R Q2Ks6RYOuUoIKBLTOwXsnFmqJERgffAUchuM5HYfDqMkxSWgWUKZwp0zcsl+Yl35NOVf 0Ade3UtNtNGEJp9EDUzPRtktbpqD2y1oEhuQPvRvNFCdKyB6aagDGDCwZdZcEhabtdFa Xdvw== X-Gm-Message-State: AG10YOSM5t1rbawdUjreMiYSfm5yH5198iXp8vOkcsvOEU9j1kGx3gWXz2OZWPdDsUxuEraiTN9JR+BmvcVl0w== X-Received: by 10.107.14.73 with SMTP id 70mr8043224ioo.31.1455789437840; Thu, 18 Feb 2016 01:57:17 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103100 On Thu, Feb 18, 2016 at 7:40 PM, Terry Reedy wrote: > To my mind, the numerous duplications and overlaps in 2.7 that are gone in > 3.x make 2.7 the worse version ever for beginners. Hmm. I was teaching on 2.7 up until last year, and for the most part, we taught a "compatible with Py3" subset of the language, without any significant cost. If you'd shown code saying "except ValueError, e:" to one of my Py2 students then, s/he would have been just as unfamiliar as one of my Py3 students would be today. That said, though, it's still that Py3 is no worse than Py2, and potentially better. The removal of L suffixes (and, similarly, the removal of u"..." prefixes on text strings) is a bigger deal to newbies than it is to experienced programmers, so that one definitely counts. "This is great, but how can I remove that u from the strings?" was a common question (eg when they're printing out a list of strings obtained from a database, or decoded from JSON). The removal of old-style classes is a definite improvement in Py3, as is the no-arg form of super(), which I'd consider a related change. So there's a bunch of tiny little "quality of life" improvements here. ChrisA