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: 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 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: 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 On Mon, Jan 27, 2014 at 12:15 PM, 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