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


Groups > comp.lang.python > #33665

Re: Yet another Python textbook

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'default.': 0.07; 'python': 0.09; 'non-ascii': 0.09; 'pavel': 0.09; 'portable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'terry': 0.09; '2.7': 0.13; 'both,': 0.16; 'old-style': 0.16; 'py3': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'support?': 0.16; 'sure.': 0.16; 'wrote:': 0.17; 'headers': 0.17; 'instance,': 0.17; 'unicode': 0.17; '(in': 0.18; 'jan': 0.18; 'discussion': 0.20; 'versions': 0.20; 'mention': 0.23; 'command': 0.24; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'supported': 0.26; 'am,': 0.27; 'first,': 0.27; 'right.': 0.27; 'separate': 0.27; 'library.': 0.27; 'correct': 0.28; 'header:X-Complaints-To:1': 0.28; 'division': 0.29; 'questions.': 0.29; 'second,': 0.29; 'statements': 0.29; 'points': 0.29; 'class': 0.29; 'classes': 0.30; 'print': 0.32; 'text,': 0.33; 'to:addr:python-list': 0.33; 'text': 0.34; 'list': 0.35; 'needed': 0.35; 'exist': 0.35; 'moved': 0.35; 'there': 0.35; 'received:org': 0.36; 'except': 0.36; 'but': 0.36; 'characters': 0.36; 'programmers': 0.36; 'scientific': 0.36; 'should': 0.36; 'does': 0.37; 'two': 0.37; 'uses': 0.37; 'previous': 0.37; 'subject:: ': 0.38; 'page': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'most': 0.61; 'future.': 0.62; 'more': 0.63; 'book.': 0.65; 'improvements': 0.65; 'teaching': 0.66; 'teach': 0.69; '2.7.': 0.84; 'received:fios.verizon.net': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Yet another Python textbook
Date Tue, 20 Nov 2012 16:34:14 -0500
References <CAB89DN0nusHZU32zP5UbTSUH8P7aXJomssBT-Jge7LEhaOtphg@mail.gmail.com> <CALwzid=3b_Gv3XR5iYvo7Pc0ZjXERB60daT9AjVoOG1OAP9vNg@mail.gmail.com> <CAB89DN0M5NzpoLRtcXRtM4Vs4xrOfw0wZq64GkU-DKy=Ei8HJQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-173-75-251-66.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
In-Reply-To <CAB89DN0M5NzpoLRtcXRtM4Vs4xrOfw0wZq64GkU-DKy=Ei8HJQ@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.100.1353447282.29569.python-list@python.org> (permalink)
Lines 48
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353447282 news.xs4all.nl 6845 [2001:888:2000:d::a6]:35654
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33665

Show key headers only | View raw


On 11/20/2012 3:02 AM, Pavel Solin wrote:

>     previous page that Python 3 was released in 2008.  Is there any work
>     underway get Python 3 into NCLab?
>
>
> There is an ongoing discussion but we are not sure.
> Are there any reasons except for the print () command
> and division of integers?

(In addition to Ian's answer, which points to an already long list of 
new features...)

There are two separate questions.
First, which versions of Python should NCLab support? I would say both 
2.7 and 3.x+. Since Py3 support does not exist now, starting with 3.3+ 
might work best.

Second, if NCLab supported both, which to teach in the book? I would say 
3.3+. Python 3 has many improvements from a teaching standpoint.

For instance, old-style classes are gone, so class statements produce 
modern-style classes by default. You can just say that the headers

class C:
class C(object):

have the same effect and never mention that there was once a separate 
user-class system.

Py 3 used unicode for text, and 3.3 now has a correct and portable 
unicode implementation. While non-ascii and even non-latin1 characters 
are not needed for interfacing with ascii-only instruments, scientific 
text uses lots of them.

...
> Perhaps you are right. Is there any statistics of how many Python
> programmers are using 2.7 vs. 3? Most of people I know use 2.7.

Experienced Python programmers are not the target of your book. Many 
school/university classes have moved to Py3, and more will in the future.

Many people who want to move to Py3 cannot because they *have to use* a 
Py2-only library.

-- 
Terry Jan Reedy

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


Thread

Re: Yet another Python textbook Terry Reedy <tjreedy@udel.edu> - 2012-11-20 16:34 -0500

csiph-web