Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.119 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.77; '*S*': 0.01; 'skip:\\ 20': 0.07; 'skip:` 30': 0.16; 'skip:` 50': 0.16; 'subject:simple': 0.16; 'replace': 0.24; 'message-id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'simple': 0.61; 'subject:more': 0.64; 'more': 0.64; 'subject:there': 0.68 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lXxAU0QaaCuHjJZVWmY40rcE56jtMj87yyT3S+DtJPw=; b=KCipKc2+P0h2cgm6gtnt+A0S1F99u+elFCffaQZ+o5O/dtm9ZK5Y7TguVudCNnUHnV Jr9dgY8BFvxYlq16XdmlusehM6/BW7EWxW9W5ps0DnVrXPoxrP/gjG2iFaFCttFBRPs/ MJzyEeZyqWGWCKD3ETYOjmnlhodxFv5dnF/dXDL9AtbHahMj/8N3RpNbz3vL/MuosGn1 3CUWho6FdPNFkUhbDAFG52D/2va/0S/cLbicyDlPb+Fd6O0y5LCnHjrAOzEqqQYj99cG VmcRMKC/DRU6Fqk3Hboej/I6goB8s+6QeBCZhgaxy8ZOQ8T4vaxfMzPSLZW1XM/h3H4D +eEQ== MIME-Version: 1.0 X-Received: by 10.152.37.137 with SMTP id y9mr6366198laj.8.1397029389340; Wed, 09 Apr 2014 00:43:09 -0700 (PDT) Date: Wed, 9 Apr 2014 15:43:09 +0800 Subject: is there more simple way to do? From: length power To: python-list@python.org Content-Type: multipart/alternative; boundary=089e014943247e151504f697407a X-Mailman-Approved-At: Wed, 09 Apr 2014 12:25:26 +0200 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397039127 news.xs4all.nl 2896 [2001:888:2000:d::a6]:59958 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69938 --089e014943247e151504f697407a Content-Type: text/plain; charset=ISO-8859-1 x='name,sex,birthday\n\nx1,male,1948/05/28\n\nx2,female,1952/03/27 \n\nx3,female,1994/12/09' x.replace("\n\n","\n").splitlines() is there more simple way to replace `x.replace("\n\n","\n").splitlines()` ? --089e014943247e151504f697407a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
x=3D'name,sex,birthday\n\nx1,male,1948/05/28\n\nx2,female,1952/03/27\n\nx3= ,female,1994/12/0= 9'
x.replace("\n\n","\n").splitlines()

is there mor= e simple way to replace=A0 `x.replace("\n\n","\n").spli= tlines()` ?
--089e014943247e151504f697407a--