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


Groups > comp.lang.python > #8556

Re: Suppressing newline writing to file after variable

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'wed,': 0.12; 'am,': 0.13; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'subject:file': 0.13; 'wrote:': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:variable': 0.16; 'subject:writing': 0.16; 'typo': 0.16; 'header:In-Reply-To:1': 0.22; 'code.': 0.22; 'received:209.85.214': 0.28; 'message-id:@mail.gmail.com': 0.28; 'times.': 0.30; 'colon': 0.30; 'chris': 0.32; 'to:addr:python- list': 0.34; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'else': 0.38; 'skip:e 20': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40
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=OFmgc95iRHWBPkMd7USKqKr/N+JDegsAKSMjgH1THQY=; b=Y/wsXKT+GkB3G3YFnR0Ef+qrCkfHj9kysK6cVD732Wq384JWux16nubpMurKXMFR9S SibO8eykka/fzK47g3sv+UI2dChIQhnbCGb3WfKhObKGg74vN+ys2PzeTTzGhZSkDdhX enOPpa6rV4ubblN8rhnvooVWShdIA1MT5+NhY=
MIME-Version 1.0
In-Reply-To <BANLkTi=rn3Z5crEYG6VDUim=5aWgaADHRQ@mail.gmail.com>
References <77AE044B1BF3944FAE2435F395F11B4B016A2910@clt-exmb02.bbtnet.com> <BANLkTikpXEpgjvVsVWocw5wVVqnLmQDa5A@mail.gmail.com> <77AE044B1BF3944FAE2435F395F11B4B016A29A2@clt-exmb02.bbtnet.com> <BANLkTi=rn3Z5crEYG6VDUim=5aWgaADHRQ@mail.gmail.com>
Date Wed, 29 Jun 2011 08:59:09 +1000
Subject Re: Suppressing newline writing to file after variable
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.489.1309301952.1164.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1309301953 news6.xs4all.nl 4364 [2001:888:2000:d::a6]:50949
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8556

Show key headers only | View raw


On Wed, Jun 29, 2011 at 8:56 AM, Chris Angelico <rosuav@gmail.com> wrote:
>      else emit(lastprefix+tails)
>  else emit(lastprefix+tails)

Typo in the above code. The else needs a colon after it, both times.

ChrisA

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


Thread

Re: Suppressing newline writing to file after variable Chris Angelico <rosuav@gmail.com> - 2011-06-29 08:59 +1000

csiph-web