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: 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> <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 Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sun, Jan 26, 2014 at 1:04 PM, Steven D'Aprano 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