Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'that?': 0.05; 'subject:Python': 0.06; 'think,': 0.07; 'bytes.': 0.09; 'compact': 0.09; 'lawrence': 0.09; 'migration': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'solution,': 0.09; 'subject:language': 0.09; 'stored': 0.12; 'language.': 0.14; 'windows': 0.15; '"*"': 0.16; 'behaviour.': 0.16; 'character.': 0.16; 'pairs,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'subject:programming': 0.16; 'surrogate': 0.16; 'usage,': 0.16; 'win7': 0.16; 'years)': 0.16; 'language': 0.16; 'wrote:': 0.18; 'fit': 0.20; 'memory': 0.22; '(in': 0.22; 'header:User-Agent:1': 0.23; 'days,': 0.24; 'unicode': 0.24; 'fine': 0.24; "haven't": 0.24; 'looks': 0.24; '15,': 0.26; '----------': 0.26; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'chris': 0.29; 'am,': 0.29; 'dec': 0.30; 'easier': 0.31; 'explained': 0.31; 'probably': 0.32; '"the': 0.34; 'maybe': 0.34; 'there': 0.35; 'shows': 0.36; 'behind': 0.37; 'experience,': 0.37; 'system,': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'till': 0.61; 'new': 0.61; 'back': 0.62; "you'll": 0.62; 'high': 0.63; 'term': 0.63; 'our': 0.64; 'more': 0.64; 'different': 0.65; 'world': 0.66; 'actually,': 0.84; 'borrow': 0.84; 'lot,': 0.93; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Experiences/guidance on teaching Python as a first programming language Date: Sat, 14 Dec 2013 14:38:23 +0000 References: <201312090824.25211.gheskett@wdtv.com> <52A78F6F.3060507@stoneleaf.us> <5b62c6f8-fb92-48ef-a59a-6025b9b39994@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-188-73.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 50 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387031930 news.xs4all.nl 2874 [2001:888:2000:d::a6]:40298 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61899 On 14/12/2013 14:15, Chris Angelico wrote: > On Sun, Dec 15, 2013 at 1:03 AM, wrote: >> D:\>chcp 65001 >> Page de codes active : 65001 >> D:\>echo "*" >> "*" >> D:\> >> >> >>>>> locale.getdefaultlocale() >> ('fr_CH', 'cp1252') >> >> ---------- >> >> In my understanding and experience, in the MS world >> (desktop, intel), today: >> Unicode == utf-16-le > > You still haven't explained how Win7 is different from every other > Windows going back as far as NT. Back in the NT days, Windows had > "Unicode" (really UCS-2 - it predated Unicode 2.0, so that was correct > for a few years) while OS/2 had DBCS. Hindsight shows that OS/2 did > kinda get left behind there :) Though maybe it would be easier to > force migration from DBCS to true Unicode than from UTF-16 or UCS-2 > where it looks fine till you hit an astral character. Now how is Win7 > different from NT? And where does the current "oldstable" Windows (if > I may borrow a term from Debian), XP, fit into that? > >> If you think, utf-16, because of surrogate pairs, is >> not a proper solution, the single choice is utf-32. >> >> You may not be aware, you are already using utf-32 >> probably much more than you think, (in a correct way). > > Yeah. I use UTF-32 a lot, often stored in ways that elide unnecessary > 00 bytes. It's a pretty good system, actually, giving high > performance, compact memory usage, and correct behaviour. Still don't > know what this has to do with Win7. > > ChrisA > Reread "The Emperor's New Clothes" and you'll get it :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence