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


Groups > comp.lang.python > #10439

Re: PyWart: PEP8: A cauldron of inconsistencies.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'ascii': 0.07; 'forcing': 0.07; 'pep': 0.07; 'python': 0.08; 'utf-8': 0.09; 'files.': 0.10; 'am,': 0.13; 'wrote:': 0.15; '(assuming': 0.16; 'beyond,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'identifiers': 0.16; 'literals': 0.16; 'rantingrick': 0.16; '\xa0for': 0.16; 'received:209.85.210.174': 0.19; 'received:mail- iy0-f174.google.com': 0.19; 'header:In-Reply-To:1': 0.22; 'trying': 0.23; 'translated': 0.23; 'code': 0.24; 'besides': 0.25; 'preferred': 0.25; 'string': 0.26; '3.0': 0.28; 'character': 0.28; 'thu,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'likes': 0.29; 'unicode': 0.29; 'do.': 0.30; '"good': 0.30; 'source': 0.32; 'to:addr:python-list': 0.34; 'instead': 0.34; 'there': 0.34; 'characters': 0.34; 'set.': 0.35; 'core': 0.36; 'anything': 0.37; 'some': 0.37; 'but': 0.37; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'rest': 0.39; 'either': 0.39; "there's": 0.39; 'to:addr:python.org': 0.39; 'skip:- 50': 0.40; 'received:209': 0.40; 'offer': 0.72; 'xah': 0.84; 'ascii.': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=LQZa6xjPekoqL1Thtnyx76+kMeszQh+JZmtgLwtcrFc=; b=RyXCHx0dDb5UnpP/B7EKOr7tBacI5GOnKPPRxTFs8hLxdmLDoApS2BTI7soA6NgAAv PutAI0W91y6VDWMztzIf7pmKB1Y9/Ds/UZug9fKiK2Ium2k0PawJ245HQAsWkNPABXZV 8/9cbWoQOs/DFmqyL4++ZLbYYvlXXLjfF0kzc=
MIME-Version 1.0
In-Reply-To <4371028e-5be0-49dd-8e05-ea773ce74e00@l37g2000yqd.googlegroups.com>
References <4371028e-5be0-49dd-8e05-ea773ce74e00@l37g2000yqd.googlegroups.com>
Date Thu, 28 Jul 2011 19:36:35 +1000
Subject Re: PyWart: PEP8: A cauldron of inconsistencies.
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.1562.1311845798.1164.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1311845798 news.xs4all.nl 23876 [2001:888:2000:d::a6]:47111
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10439

Show key headers only | View raw


On Thu, Jul 28, 2011 at 8:34 AM, rantingrick <rantingrick@gmail.com> wrote:
>> ----------------------------------------------------------
>> Encodings (PEP 263)
>>
>> Code in the core Python distribution should always use the
>> ASCII or Latin-1 encoding (a.k.a. ISO-8859-1).  For Python
>> 3.0 and beyond, UTF-8 is preferred over Latin-1, see PEP
>> 3120.
>> ----------------------------------------------------------
>
> no, NO, NO!. We should never be writing source in ANYTHING besides
> ASCII. Can you offer any "good reason" why we should? No, because
> there are no good reasons. This is just more fluffy feel good crap and
> it makes me sick! Are we trying to keep xah happy? I know he likes
> Unicode.

There's nothing wrong with using UTF-8 for source files. It means that:
a) Unicode string literals can incorporate copied-and-pasted Unicode
characters (assuming the editor knows to save with the right
encoding), instead of forcing them to be translated into \uXXXX
notation; and
b) identifiers are not limited to the ASCII character set.

There's no reason to deny either of these. Rick, you're welcome to
stay in the US and never send any code to the rest of the world, but
some of us do.

ChrisA

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


Thread

PyWart: PEP8: A cauldron of inconsistencies. rantingrick <rantingrick@gmail.com> - 2011-07-27 15:34 -0700
  Re: PyWart: PEP8: A cauldron of inconsistencies. Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-27 18:48 -0500
  Re: PyWart: PEP8: A cauldron of inconsistencies. Thomas Jollans <t@jollybox.de> - 2011-07-28 02:06 +0200
  Re: PyWart: PEP8: A cauldron of inconsistencies. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-28 13:07 +1000
    Re: PyWart: PEP8: A cauldron of inconsistencies. harrismh777 <harmar@member.fsf.org> - 2011-07-27 22:23 -0500
  Re: PyWart: PEP8: A cauldron of inconsistencies. Chris Angelico <rosuav@gmail.com> - 2011-07-28 19:36 +1000
  Re: PyWart: PEP8: A cauldron of inconsistencies. "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2011-07-30 09:52 -0700
    Re: PyWart: PEP8: A cauldron of inconsistencies. Chris Angelico <rosuav@gmail.com> - 2011-07-30 18:04 +0100

csiph-web