Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'string.': 0.04; 'subject:text': 0.05; '*not*': 0.07; 'subject:question': 0.08; 'spec': 0.09; 'do,': 0.15; 'sat,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'header:In- Reply-To:1': 0.25; 'appear': 0.26; 'am,': 0.27; 'right.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'that.': 0.30; 'anywhere': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'characters': 0.36; 'data.': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'mentioned': 0.63; '2013': 0.84; 'angel': 0.93; 'lucky': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=TBbQfzsBTexDJMUQrfpW0w7xqTfsuNJwWBdSw0YK8kw=; b=hmAczuYlKMnb7UhrBYyPOlDfGT8xM7yTnDO/XX23vYTiEGii7g35s3GLOOo6/ivqRH pvgXI7P9Ks8nHgw9sry0s/ah4c8scDpfscnFxrTvTBWVn/yFMRXhgJ0JmwZTTG1Upfbp YeHiTi3KkK2sKeYqzF0zLfQLyr5IMT3QvhdsRM4R8onlX1jzjeLPmJc8gPhZly4/W9aa c36xohbz+kIIDytpz4tsmokWd8PsSagVqMxuDGqPlP492zM3KAcmjmcsrYqF7c5wR8av gDM6X7evL6uiVwDifK7Iz4VlvwkDG2WKopq8+xFoarKbKNT9rlSsAk01wLO9UcjMbJc6 qAkA== MIME-Version: 1.0 X-Received: by 10.52.88.197 with SMTP id bi5mr3507134vdb.58.1362146227188; Fri, 01 Mar 2013 05:57:07 -0800 (PST) In-Reply-To: <5130B2BA.9080801@davea.name> References: <0a6178f9-51ef-4edc-b87f-2631d667797f@googlegroups.com> <0a682b8c-34dd-4f45-b834-76c9f83d866d@googlegroups.com> <5130B2BA.9080801@davea.name> Date: Sat, 2 Mar 2013 00:57:07 +1100 Subject: Re: text formatting question From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362146236 news.xs4all.nl 6864 [2001:888:2000:d::a6]:58476 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40252 On Sat, Mar 2, 2013 at 12:52 AM, Dave Angel wrote: > The assumption Chris made is that the characters XYC do *not* appear > anywhere else in each string. if they do, then you need to write a spec as > to what criteria you can count on for the data. > Right. I should have mentioned that. Let's hope the OP is sufficiently lucky as to have a separator uniqueness.. ChrisA