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


Groups > comp.lang.python > #64756

Re: Trying to understand this moji-bake

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'source.': 0.07; 'ascii': 0.09; 'default.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; '2.7': 0.14; 'bug,': 0.16; 'defaulting': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'literals': 0.16; 'non-ascii': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'raise': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'clear': 0.37; 'same.': 0.38; 'pm,': 0.38; 'expect': 0.39; 'called': 0.40; 'needing': 0.65; '26,': 0.68; 'subject:this': 0.83; 'bug!': 0.84; 'to:none': 0.92
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; bh=fLidrb33NZno1q4iWKTVEoRRNd+HMKd5zfw6wdHxOhc=; b=gizq9GlUjMlEOrSueo6P2Xh48fiXGBHtQyJCI8ur0AnTOyM9FD9wuurGb0XSt83UlA ke9JZtFTTB8tQEbjG2ESlQK8ZQjWBo6g7pKE2BHW+h/rbLI+Bnm1JXLNKsLSUwLPqTJ/ XxECVkwNj7wqBvZxGeFRdOWcZYJKRnxISxz1mQEQpJgybtErLszmeOjZKbwDQRcg0O1U O4l/jZMUqoGSp5HDL5OnNGgiTYADcBZwI2datz5ydVCnRqhQB+6AEqGsz0GRc77Zed+n yp0RXTWSCCGQQg4mNq9zFMX3oIcn80BA5iMsKWzPI7PNE4+pyq83GTwgq6w532nw8dxh Je8w==
MIME-Version 1.0
X-Received by 10.68.191.73 with SMTP id gw9mr193292pbc.158.1390702110317; Sat, 25 Jan 2014 18:08:30 -0800 (PST)
In-Reply-To <52e46d38$0$29999$c3e8da3$5496439d@news.astraweb.com>
References <52e33f8d$0$29999$c3e8da3$5496439d@news.astraweb.com> <mailman.5965.1390630146.18130.python-list@python.org> <52e46d38$0$29999$c3e8da3$5496439d@news.astraweb.com>
Date Sun, 26 Jan 2014 13:08:30 +1100
Subject Re: Trying to understand this moji-bake
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.5983.1390702113.18130.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390702113 news.xs4all.nl 2924 [2001:888:2000:d::a6]:39284
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64756

Show key headers only | View raw


On Sun, Jan 26, 2014 at 1:04 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> If there's a bug, it is that Python 2.7 doesn't
> raise SyntaxError when called with -c and there are non-ASCII literals in
> the source. Instead, it seems to be defaulting to Latin-1, hence the moji-
> bake.

That might well be a bug! I was reading the PEP, which was pretty
clear about it needing to be ASCII by default. It's not so clear about
-c but I would expect it to do the same.

ChrisA

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


Thread

Trying to understand this moji-bake Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-25 04:37 +0000
  Re: Trying to understand this moji-bake Cameron Simpson <cs@zip.com.au> - 2014-01-25 16:08 +1100
  Re: Trying to understand this moji-bake Chris Angelico <rosuav@gmail.com> - 2014-01-25 17:08 +1100
    Re: Trying to understand this moji-bake Peter Pearson <ppearson@nowhere.invalid> - 2014-01-25 17:56 +0000
      Re: Trying to understand this moji-bake Chris Angelico <rosuav@gmail.com> - 2014-01-26 06:13 +1100
      Re: Trying to understand this moji-bake Terry Reedy <tjreedy@udel.edu> - 2014-01-25 22:31 -0500
    Re: Trying to understand this moji-bake Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-26 02:04 +0000
      Re: Trying to understand this moji-bake Chris Angelico <rosuav@gmail.com> - 2014-01-26 13:08 +1100
  Re: Trying to understand this moji-bake Peter Otten <__peter__@web.de> - 2014-01-25 09:56 +0100
  Re: Trying to understand this moji-bake wxjmfauth@gmail.com - 2014-01-25 01:24 -0800
  Re: Trying to understand this moji-bake Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2014-01-25 21:15 +0000

csiph-web