Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.179 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.14; 'output,': 0.09; 'suffix': 0.09; 'type,': 0.09; 'cc:addr:python-list': 0.11; 'direction?': 0.16; 'skip:o 100': 0.16; '\xc2\xa0if': 0.16; '\xc2\xa0you': 0.16; 'split': 0.19; 'examples': 0.20; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'lines': 0.31; 'received:google.com': 0.35; 'skip:& 10': 0.38; 'skip:& 20': 0.39; 'number,': 0.60; 'address': 0.63; 'field': 0.63; 'hunter': 0.84; 'hutchinson': 0.84; 'stone': 0.84; 'subject:Unwanted': 0.84; 'rd,': 0.91; 'to:none': 0.92; 'wanting': 0.93 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=0qcaDyYCEtQ/FJraVBm/gqUhEFAAESiEczboQERIASo=; b=JTKbZ4D1xWW5s5RcjFO44zCZOmbW8EYXASdhMtiFHSjGhSUgoYgqtBsp3QeAyrc6k+ PqevJU6lumS4SpUGHR5Pqnji94xGqeF0qv0RqS1rI3seXo/ypOGNID7iOFKTDEKVZ0Fq ARQmgBQAs0/LSZcct/3nmuTZmXbSI5aOEIDSP7tVzlnvzb3HdxBE1DMS5frd74+c4/eP j7j2USaKMyZLVmW3DsT1nT/PT9bWrbSBnOGSuzePewJInhVnkusrKcwjKQBmukImnGAW OcOxoxgEdnKAJtIN8hFIHXeo69kYj/A1tzXmM3Kc/pPZ+xuCEfrn1LSgQrhTtMwqQmTE gRVQ== MIME-Version: 1.0 X-Received: by 10.51.17.11 with SMTP id ga11mr15082178igd.36.1390779856090; Sun, 26 Jan 2014 15:44:16 -0800 (PST) In-Reply-To: <988fec60-228a-4427-b07e-b4327c7e02ae@googlegroups.com> References: <988fec60-228a-4427-b07e-b4327c7e02ae@googlegroups.com> Date: Sun, 26 Jan 2014 16:44:16 -0700 Subject: Re: Unwanted Spaces and Iterative Loop From: Jason Friedman Cc: python-list Content-Type: multipart/alternative; boundary=001a1135f140487ed404f0e82b25 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: 49 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390779864 news.xs4all.nl 2961 [2001:888:2000:d::a6]:52767 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64802 --001a1135f140487ed404f0e82b25 Content-Type: text/plain; charset=UTF-8 > > > outHandler.write("FarmID\tAddress\tStreetNum\tStreetName\tSufType\tDir\tCity\tProvince\tPostalCode") > > ... > FarmID Address > 1 1067 Niagara Stone Rd, Niagara-On-The-Lake, ON L0S 1J0 > 2 4260 Mountainview Rd, Lincoln, ON L0R 1B2 > 3 25 Hunter Rd, Grimsby, ON L3M 4A3 > 4 1091 Hutchinson Rd, Haldimand, ON N0A 1K0 > > You are wanting to produce tab-separated output, with an "Address" field plus the Address split into fields for Street Number, Street Name, Suffix Type, Direction? The four lines you have pasted are examples of your input? If yes, "Direction" is a single letter? --001a1135f140487ed404f0e82b25 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
outHandler.write("FarmID\tAddress\tStreetNu= m\tStreetName\tSufType\tDir\tCity\tProvince\tPostalCode")

...
=C2=A0
FarmID =C2=A0Address
1 =C2=A0 =C2=A0 =C2=A0 1067 Niagara Stone Rd, Niagara-On-The-Lake, ON L0S 1= J0
2 =C2=A0 =C2=A0 =C2=A0 4260 Mountainview Rd, Lincoln, ON L0R 1B2
3 =C2=A0 =C2=A0 =C2=A0 25 Hunter Rd, Grimsby, ON L3M 4A3
4 =C2=A0 =C2=A0 =C2=A0 1091 Hutchinson Rd, Haldimand, ON N0A 1K0

=C2=A0
You are wanting to produce tab-separated o= utput, with an "Address" field plus the Address split into fields= for Street Number, Street Name, Suffix Type, Direction?

The four li= nes you have pasted are examples of your input? =C2=A0If yes, "Directi= on" is a single letter?
--001a1135f140487ed404f0e82b25--