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


Groups > comp.lang.python > #61721

Re: Experiences/guidance on teaching Python as a first programming language

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'encoding': 0.05; 'subject:Python': 0.06; 'string': 0.09; 'ascii': 0.09; 'subject:language': 0.09; 'windows,': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'windows': 0.15; 'ascii,': 0.16; 'encodings': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'meanwhile': 0.16; 'repr': 0.16; 'subject:programming': 0.16; 'wrote:': 0.18; 'bit': 0.19; "python's": 0.19; 'replacing': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'shown': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; '>>>>': 0.31; 'fri,': 0.33; 'convert': 0.35; 'no,': 0.35; 'received:google.com': 0.35; 'displays': 0.38; 'nov': 0.38; 'pm,': 0.38; 'does': 0.39; '12,': 0.39; 'back': 0.62; "you've": 0.63; 'box,': 0.64; 'default': 0.69; 'secret': 0.74; 'proves': 0.84; '2013,': 0.91; 'to:none': 0.92; '2013': 0.98
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:content-transfer-encoding; bh=4XU1t/0668QHR6ih0Tb27LrDthghOQbL3HJfLB+w+IQ=; b=e5LyBDmUGJROhTTOsYXoK3JdHRctfjatvoXac8XoGnZRmOuWAnGnp9Pt/RJyKDctHU mo10K1bbNn35Jr6l5DvFEK3cJDwZVnWR+bRuk707rPvuFICx3wCI9Y4z8SCF3UH/3W/i PXby8/lcBKgOSz5Lh0bmPUCFUgwc1Qja8/gSxb/AVdPf5pOXyCreNh1CjILGU3u6JAJ0 xkJ0BAs318Ze+kjjzFHXPkYoIMf+3l7Wb8eoI4bMCbo/3Q/jDYokoDSrdHJBMHuTyvGm mveYM84vdd3keTXhOwRvpqpCEdRuVMxfrzD0S9XZAh1KhWSzfcXo4Jjs4A9m6hOfrFho Xn3Q==
MIME-Version 1.0
X-Received by 10.68.236.133 with SMTP id uu5mr12756036pbc.153.1386859661088; Thu, 12 Dec 2013 06:47:41 -0800 (PST)
In-Reply-To <dec310f8-dd2e-4890-923e-fe809b8aef24@googlegroups.com>
References <CAHVvXxS23g8dxO23pPTmXLo0z=QzJY_CjwMUtJcvAVfRhZa8bA@mail.gmail.com> <201312090824.25211.gheskett@wdtv.com> <52A78F6F.3060507@stoneleaf.us> <CABicbJKoN9fV48yskd5wqE79vsb5=nPGfwgOTCO+fCFMG7g8qw@mail.gmail.com> <mailman.3872.1386751441.18130.python-list@python.org> <d0aef6f2-9091-4f27-b378-8e24257d3983@googlegroups.com> <mailman.3882.1386758747.18130.python-list@python.org> <f62baa3e-d286-4f7b-b6db-71cafb0523d3@googlegroups.com> <mailman.3979.1386844124.18130.python-list@python.org> <dec310f8-dd2e-4890-923e-fe809b8aef24@googlegroups.com>
Date Fri, 13 Dec 2013 01:47:40 +1100
Subject Re: Experiences/guidance on teaching Python as a first programming language
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.3995.1386859664.18130.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386859664 news.xs4all.nl 2892 [2001:888:2000:d::a6]:39540
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61721

Show key headers only | View raw


On Fri, Dec 13, 2013 at 1:34 AM,  <wxjmfauth@gmail.com> wrote:
> Le jeudi 12 décembre 2013 11:28:35 UTC+1, Chris Angelico a écrit :
>> On Thu, Dec 12, 2013 at 8:17 PM,  <wxjmfauth@gmail.com> wrote:
>>
>> > Windows, Py2.(7), ascii. It is not a secret Python uses
>> > ascii for the representation.
>>
>> Actually no, it doesn't.
>
>>>> sys.version
> '2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]'
>>>> sys.stdout.encoding
> 'cp1252'

What has this to do with ASCII or with Python's internal
representation? All you've proven is that you can convert the repr of
a string back into a byte-string, by replacing "\\xa9" with "\xa9",
and then shown that you can successfully render that as CP-1252 and it
displays as a copyright symbol. Meanwhile when I try the same thing on
my Windows box, the default encoding is cp437, so it throws. Proves
nothing about ASCII, as neither of those encodings is ASCII, and A9
does not decode as ASCII.

ChrisA

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


Thread

Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-11 19:43 +1100
  Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-11 01:39 -0800
    Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-11 10:05 +0000
    Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-11 21:45 +1100
      Re: Experiences/guidance on teaching Python as a first programming language alex23 <wuwei23@gmail.com> - 2013-12-12 15:38 +1000
      Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-12 01:17 -0800
        Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-12 21:28 +1100
          Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-12 06:34 -0800
            Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-13 01:47 +1100
              Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-12 08:20 -0800
                Re: Experiences/guidance on teaching Python as a first programming language Ned Batchelder <ned@nedbatchelder.com> - 2013-12-12 11:58 -0500
            Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-12 15:01 +0000
        Re: Experiences/guidance on teaching Python as a first programming language Ned Batchelder <ned@nedbatchelder.com> - 2013-12-12 08:52 -0500
        Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-12 14:30 +0000
        Re: Experiences/guidance on teaching Python as a first programming language Terry Reedy <tjreedy@udel.edu> - 2013-12-12 12:55 -0500
          Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-13 08:15 -0800
            Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-14 03:27 +1100
              Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-13 10:27 -0800
                Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-14 05:32 +1100
                Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-13 11:30 -0800
            Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-13 16:39 +0000
            Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-14 03:43 +1100
              Re: Experiences/guidance on teaching Python as a first programming language rusi <rustompmody@gmail.com> - 2013-12-13 08:54 -0800
                Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-14 03:57 +1100
            Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-13 17:02 +0000
            Re: Experiences/guidance on teaching Python as a first programming language Terry Reedy <tjreedy@udel.edu> - 2013-12-13 17:49 -0500
              Re: Experiences/guidance on teaching Python as a first programming language Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-14 09:58 +0000
            Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-13 23:10 +0000
            Re: Experiences/guidance on teaching Python as a first programming language Terry Reedy <tjreedy@udel.edu> - 2013-12-13 18:30 -0500
              Re: Experiences/guidance on teaching Python as a first programming language wxjmfauth@gmail.com - 2013-12-14 06:03 -0800
                Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-15 01:15 +1100
                Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 14:38 +0000
                CP65001 fails (was re: ...) Terry Reedy <tjreedy@udel.edu> - 2013-12-14 13:43 -0500
                Re: CP65001 fails (was re: ...) wxjmfauth@gmail.com - 2013-12-14 12:48 -0800
                Re: CP65001 fails (was re: ...) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 21:05 +0000
                Re: CP65001 fails (was re: ...) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-14 22:51 +0000
                Re: CP65001 fails (was re: ...) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 23:32 +0000
                Re: CP65001 fails (was re: ...) rusi <rustompmody@gmail.com> - 2013-12-14 20:42 -0800
                Re: CP65001 fails (was re: ...) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-15 05:00 +0000
                Re: CP65001 fails (was re: ...) rusi <rustompmody@gmail.com> - 2013-12-14 21:24 -0800
                Re: CP65001 fails (was re: ...) Chris Angelico <rosuav@gmail.com> - 2013-12-15 15:48 +1100
                Re: CP65001 fails (was re: ...) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-15 14:25 +0000
                Re: CP65001 fails (was re: ...) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-15 02:39 +0000
                Re: CP65001 fails (was re: ...) Terry Reedy <tjreedy@udel.edu> - 2013-12-15 00:07 -0500
                Re: CP65001 fails (was re: ...) wxjmfauth@gmail.com - 2013-12-15 00:26 -0800
            Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-14 10:38 +1100
            Re: Experiences/guidance on teaching Python as a first programming language Ethan Furman <ethan@stoneleaf.us> - 2013-12-13 15:17 -0800
            Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-13 23:58 +0000
              Re: Experiences/guidance on teaching Python as a first programming language Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-14 10:00 +0000
                Re: Experiences/guidance on teaching Python as a first programming language Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-14 13:21 +0000
    Re: Experiences/guidance on teaching Python as a first programming language Steve Simmons <square.steve@gmail.com> - 2013-12-11 12:33 +0100
    Re: Experiences/guidance on teaching Python as a first programming language Chris Angelico <rosuav@gmail.com> - 2013-12-11 23:02 +1100
    Re: Experiences/guidance on teaching Python as a first programming language Steve Simmons <square.steve@gmail.com> - 2013-12-11 13:30 +0100
  Re: Experiences/guidance on teaching Python as a first programming language Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-11 11:17 +0000

csiph-web