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


Groups > comp.lang.python > #49431

Re: python adds an extra half space when reading from a string or list

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joshua.landau.ws@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'subject:extra': 0.09; 'subject:string': 0.09; 'question.': 0.14; 'posted': 0.15; 'charles': 0.16; 'nameerror:': 0.16; 'subject:when': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'case.': 0.24; "haven't": 0.24; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'asked': 0.31; 'code': 0.31; "skip:' 10": 0.31; 'file': 0.32; '(most': 0.33; 'to:name:python-list': 0.33; 'subject:from': 0.34; 'problem.': 0.35; 'test': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'words,': 0.36; 'to:addr:python-list': 0.38; 'recent': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'is.': 0.60; "you've": 0.63; 'name': 0.63; 'subject:space': 0.84; '2013': 0.98
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 :content-type; bh=xuv5s8Eainskt3Y/YBu/D6W3gaapO2E66Y5YpQEmLH4=; b=Fdy+Rki3W6xb4G/G9HDqeDlxvtmvgpSbcYx+p0hic4XrVDUI1SRK9p6XW50M316O8x xirs/3Tw9aUAs8A1M7aKaaliZD4w11hfTWJxd9IbBJ3JH3ML8EV0KYVECDd0S79NYzGo /nmhT/fgs6CtuGFjB31lUa96OJvyur7Hv658aEzub4K2DvdZxrzjXlXD1TRAsp/C5OvT bN0oaPK0LaqSlOkvOTp1iM5Y3isCl7cT5pWCUHHMu6baADkilJSNPm0zwebs5ZxJcoH0 SXIHyUYo5LsXl3MXSGrYRQDHBwOSVOkZeT5Eo1gQHGxEp4ENYqRao0xyeJ26VJNhKwUn JwqA==
X-Received by 10.112.52.97 with SMTP id s1mr8598807lbo.8.1372521957667; Sat, 29 Jun 2013 09:05:57 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <CAKP_0cVuK07_DNkA3oHnFbYNaGNYw-EEMaWAhgLRRvYbpmsPPQ@mail.gmail.com>
References <CAKP_0cVuK07_DNkA3oHnFbYNaGNYw-EEMaWAhgLRRvYbpmsPPQ@mail.gmail.com>
From Joshua Landau <joshua.landau.ws@gmail.com>
Date Sat, 29 Jun 2013 17:05:17 +0100
Subject Re: python adds an extra half space when reading from a string or list
To python-list <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 <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.3997.1372521964.3114.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372521964 news.xs4all.nl 15963 [2001:888:2000:d::a6]:56963
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49431

Show key headers only | View raw


On 29 June 2013 03:07, charles benoit <feather.duster.kung.fu@gmail.com> wrote:
<STUFF>

1) You haven't asked a question.

2) You posted your code twice. That makes it look a lot harder and
longer than it really is.

3) Give us a *minimal* reproducible test case. I currently just get:

%~> python2 /tmp/nd.py
Traceback (most recent call last):
  File "/tmp/nd.py", line 12, in <module>
    finale_line2=finale_line
NameError: name 'finale_line' is not defined

This isn't the only problem.

In other words, you've given us an unsolvable problem. Try again.

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


Thread

Re: python adds an extra half space when reading from a string or list Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-29 17:05 +0100

csiph-web