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


Groups > comp.lang.python > #64815

Re: Unwanted Spaces and Iterative Loop

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.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.027
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'paths': 0.07; 'cc:addr :python-list': 0.11; 'jan': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'implies': 0.16; 'preserve': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'cc:addr:python.org': 0.22; 'directory.': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'actual': 0.34; "i'd": 0.34; 'received:google.com': 0.35; 'are,': 0.36; 'next': 0.36; 'fact': 0.38; 'pm,': 0.38; 'changed': 0.39; 'different.': 0.84; 'subject:Unwanted': 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=8aDVkMv9TNXtyJ8VwipAzihjqqAHtYJSmg6hkjghCZQ=; b=tavnce1lFuB6pERxyYIN7A8FGV8hCvNNWMcgv9rq5Su6B9OGwMP5C9+Hj8i7aGHNi/ IUQsYRhjS/K6Va9nirAUI8dv6pFS/dPLfStCwIePrNuOTwjKKHjGaNL6Zu5bC4klH8hW ItT4nx5ykbAkzeIpkDQfVwZw3MVlZt+u29D+cCTHhfutEGmoP+8GFHNwQu7tG/UXXrVH CsUGE53PFgCms+cVFroORtFrpKo9fyHKM7ZoOMEL8VAJ+eh71DO3zCzZPxUsuYFeq0ub leu0aDEwhVraldmFWqjdzLnQLXdWmlYNWcPObe55KxTvQOmH+zI+kyeIKLPSzC89tk5D 7sbA==
MIME-Version 1.0
X-Received by 10.68.75.9 with SMTP id y9mr27561380pbv.61.1390787762009; Sun, 26 Jan 2014 17:56:02 -0800 (PST)
In-Reply-To <0503362d-7f14-441f-9291-75711eddd283@googlegroups.com>
References <988fec60-228a-4427-b07e-b4327c7e02ae@googlegroups.com> <52e5aafa$0$29999$c3e8da3$5496439d@news.astraweb.com> <0503362d-7f14-441f-9291-75711eddd283@googlegroups.com>
Date Mon, 27 Jan 2014 12:56:01 +1100
Subject Re: Unwanted Spaces and Iterative Loop
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.6014.1390787771.18130.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390787771 news.xs4all.nl 2949 [2001:888:2000:d::a6]:44702
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64815

Show key headers only | View raw


On Mon, Jan 27, 2014 at 12:15 PM,  <matt.s.marotta@gmail.com> wrote:
> I`m not reading and writing to the same file, I just changed the actual paths to directory.

For next time, say "directory1" and "directory2" to preserve the fact
that they're different. Though if they're file names, I'd use "file1"
and "file2" - calling them "directory" implies that they are, well,
directories :)

ChrisA

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


Thread

Unwanted Spaces and Iterative Loop matt.s.marotta@gmail.com - 2014-01-26 13:46 -0800
  Re: Unwanted Spaces and Iterative Loop Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-26 22:20 +0000
  Re: Unwanted Spaces and Iterative Loop MRAB <python@mrabarnett.plus.com> - 2014-01-26 23:28 +0000
  Re: Unwanted Spaces and Iterative Loop Jason Friedman <jsf80238@gmail.com> - 2014-01-26 16:44 -0700
    Re: Unwanted Spaces and Iterative Loop matt.s.marotta@gmail.com - 2014-01-26 15:56 -0800
  Re: Unwanted Spaces and Iterative Loop Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-27 00:40 +0000
    Re: Unwanted Spaces and Iterative Loop matt.s.marotta@gmail.com - 2014-01-26 17:15 -0800
      Re: Unwanted Spaces and Iterative Loop Chris Angelico <rosuav@gmail.com> - 2014-01-27 12:56 +1100
        Re: Unwanted Spaces and Iterative Loop matt.s.marotta@gmail.com - 2014-01-26 17:58 -0800
          Re: Unwanted Spaces and Iterative Loop Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-27 13:32 +0000
      Re: Unwanted Spaces and Iterative Loop Jason Friedman <jsf80238@gmail.com> - 2014-01-26 19:00 -0700
        Re: Unwanted Spaces and Iterative Loop matt.s.marotta@gmail.com - 2014-01-26 19:07 -0800

csiph-web