Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: eryk sun Newsgroups: comp.lang.python Subject: Re: Guido sees the light: PEP 8 updated Date: Sun, 17 Apr 2016 03:14:55 -0500 Lines: 31 Message-ID: References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <87shym6kpo.fsf@elektro.pacujo.net> <87h9f26ioa.fsf@elektro.pacujo.net> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <85vb3huxjn.fsf@benfinney.id.au> <20160416165027.0fe70e5f@bigbox.christie.dr> <20160416203052.2598ad15@bigbox.christie.dr> <1460869840.2418229.581008993.127F25A8@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de gGdmH4VzXXpoAVcgywmZoQSxmUGQq03Gpd45iZG/rzag== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'implements': 0.07; 'locale': 0.07; 'subject:PEP': 0.07; 'everyone,': 0.15; '2016': 0.16; 'columns': 0.16; 'mean,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'obviously': 0.16; 'exists': 0.18; 'implementing': 0.18; 'versions': 0.20; 'am,': 0.23; 'code.': 0.23; 'bit': 0.23; 'header :In-Reply-To:1': 0.24; "doesn't": 0.26; 'message- id:@mail.gmail.com': 0.27; 'character.': 0.29; 'doing?': 0.29; 'character': 0.29; "i'd": 0.31; 'extend': 0.31; 'guess': 0.31; 'users.': 0.31; 'maintaining': 0.34; 'received:google.com': 0.35; 'skip:c 30': 0.35; 'mix': 0.35; 'unicode': 0.35; 'but': 0.36; 'instead': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:209': 0.38; 'why': 0.39; 'whatever': 0.39; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'to,': 0.63; 'chinese,': 0.84; 'fonts': 0.84; 'western': 0.89; 'tied': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=INg4hPPdQG4/80KNLgg5uaolWFQvn7ZSwtIohWN4L3g=; b=ISL1FNFJymrEneB7qT1nF6aeCNmxdrCCEjG8dS09DRaaluMjbLhDbNy/BCEaXHob57 GkyOT5PgWEvNauffk2Lc163JzUmQkYKsauTBn8BATlRyoBV1JhS+TfhYetMxGXddzKgy oEdczfEbT23OFCy9iUwBfuvSxqcXk4MEx/Pd1ygf0dJRm2E+IzjIWRPdMyijreeQJWcr iQYlMIlnQJEW2tC0wgF6HLirTk6hZFwuLnCQ0zVM3o1hkOCxM/U9FehobQBKGsTVR0Oa xGjtjLrxtPcaaikGoBi0q3oPE1gWwunhp9p+jy2y1zUSAKVKVpU1UK17brvBDTh+wkiM CW/w== 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:from:date :message-id:subject:to; bh=INg4hPPdQG4/80KNLgg5uaolWFQvn7ZSwtIohWN4L3g=; b=KDeWJexOxDY62E9M5fODorGJ48wr567W5GquN51qfqXxvt+b4npduRKIgMoRsT5h7Y xMBebpFq1xFUAIkARxfEmaDDQyjngszPNiZn+0IgSVSKXnFz3ZCaVUMgz18VcqVBfS4H zb5WMtuu2OPZ6nwd6UeVlER118HgE2x6p7nKJ4XglAiMBbMyjSdMoGcu1hOSzNeIi4i8 1/85ur2DZNRjyEcz2XT3WvvTj699CVStNGKu0tdtVveQqsLEHf8eja6FaDY5tSctGzWc FDgGfaJtBUQC52ImW4F8AWCkIr4IBBRaOB9UkOpBJ+WbixGp0V0gT62KbOpdj25i6gme pIMw== X-Gm-Message-State: AOPr4FXGqNf+RGz0NAiQMxAYSHGcS7UYtwgXxP1qbz5HsYFuu90jonh4V3tv63KGEIzs44su+jPQnIcIaH/5zw== X-Received: by 10.107.14.209 with SMTP id 200mr29705281ioo.73.1460880935790; Sun, 17 Apr 2016 01:15:35 -0700 (PDT) In-Reply-To: <1460869840.2418229.581008993.127F25A8@webmail.messagingengine.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <5711c1b3$0$1596$c3e8da3$5496439d@news.astraweb.com> <87shym6kpo.fsf@elektro.pacujo.net> <87h9f26ioa.fsf@elektro.pacujo.net> <1460809922.1918014.580580553.0AE05EE4@webmail.messagingengine.com> <878u0d7az5.fsf@elektro.pacujo.net> <85vb3huxjn.fsf@benfinney.id.au> <20160416165027.0fe70e5f@bigbox.christie.dr> <20160416203052.2598ad15@bigbox.christie.dr> <1460869840.2418229.581008993.127F25A8@webmail.messagingengine.com> Xref: csiph.com comp.lang.python:107163 On Sun, Apr 17, 2016 at 12:10 AM, Random832 wrote: > > On Sun, Apr 17, 2016, at 01:01, eryk sun wrote: >> It doesn't support fonts that mix half-width and full-width glyphs. > > This is the most baffling bit to me. I mean, it _has_ to, for Chinese, > Japanese, and Korean users. This support obviously exists in the code. > Why not extend it to everyone, instead of maintaining two versions of > whatever it's doing? Right, the console implements this for CJK locales, in which case it uses 2 columns for a full-width character. But based on the public symbols, I'd guess that the implementation is tied to using a DBCS codepage: 0:004> x /1 /n conhostv2!*dbcs* ConhostV2!DBCS_SCREEN_BUFFER::CreateInstance ConhostV2!DBCS_SCREEN_BUFFER::`scalar deleting destructor' ConhostV2!DBCS_SCREEN_BUFFER::~DBCS_SCREEN_BUFFER ConhostV2!InitializeDbcsMisc ConhostV2!IsDBCSLeadByteConsole ConhostV2!ReCreateDbcsScreenBuffer ConhostV2!ReCreateDbcsScreenBufferWorker ConhostV2!RemoveDbcsMark ConhostV2!RemoveDbcsMarkAll ConhostV2!RemoveDbcsMarkCell ConhostV2!g_fIsDBCSACP Implementing this in a Western locale would need an implementation based on Unicode character properties.