Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.133 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.07; "'',": 0.07; 'skip:\\ 20': 0.07; 'spaces': 0.09; 'retrived': 0.16; 'subject:Remove': 0.16; 'tuple': 0.16; 'all,': 0.19; "skip:' 30": 0.19; 'format,': 0.24; '---': 0.24; '----': 0.29; 'message-id:@mail.gmail.com': 0.30; 'this.': 0.32; 'subject:from': 0.34; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'remove': 0.60; 'skip:n 10': 0.64; 'url:gif': 0.82; 'url:images': 0.83; "'3',": 0.84; 'url:linked': 0.84; 'url:themes': 0.84; 'url:wp- content': 0.91 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=Xy+5aSHjiz17r5IcDxMEnw2ND4OhDt9zS0g8Lgekyl0=; b=f/MKgUCvROmcV+lKN3mkCIFaVaRl/R5lYA4qI70wskYAbzk/UxR3Ul3hhpcj22QwPL zXTEazyHH1Ds3CgNBozgEmQFcmLHsgyYqPlpL0LgHqenOQ5tuerFRv8BwztAVHEqUmcy wWHkT/N+miUGQQWwF8aR46ED6+uwfQ8aGxJoM2Ly9YVCanDCg6SxzPwhS0nwsqrYYzl/ KzldYluWOtmeNPzbWgy2IpHWw7Fjew/H471qza13EbCTQjUdAmVhyOzKcWMNw6oxHxx5 6p+vDbtOvM2dxdvyKr+fHhKJdSVkGO5nInywZ4ChHs7C0161vyKbnXoirXRNQXyvyyhy VBpw== MIME-Version: 1.0 X-Received: by 10.180.9.203 with SMTP id c11mr5409685wib.64.1379481138824; Tue, 17 Sep 2013 22:12:18 -0700 (PDT) Date: Wed, 18 Sep 2013 10:42:18 +0530 Subject: Remove \n, " " from tuple. From: Venkat Addala To: python-list@python.org Content-Type: multipart/alternative; boundary=001a11c22634410cc304e6a17b59 X-Mailman-Approved-At: Wed, 18 Sep 2013 10:38:29 +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: 80 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379493511 news.xs4all.nl 15874 [2001:888:2000:d::a6]:34692 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54364 --001a11c22634410cc304e6a17b59 Content-Type: text/plain; charset=ISO-8859-1 Hi all, I have a tuple in this format, which is retrived using MySQLdb, now i want to remove \n and extra spaces in this. 13L, 'ssDsC', 'CEs5s1, DsC', 'srylscetsmight\nghtscetylsse', '3', '3q25.1', 151531861L, 151546276L, '+', '1 kjafhkfhlad\fdfdsdf ghtscetylsse \ncontends the sctivity of dsfdk srylsmine N-scetyltrsnsfersse thst scts ss s cstslyst inbiotrsnsformstion fghjfg for srylsmine snd bvhghbh smine csrcinogens. Bgskjdg in ssDsC dfkdkdf in bresst snd prostrste csncer.', '', 'Msdhurs \nsgdfgssssvslingegowds', dstetime.dste(2013, 6, 14), None -- Regards Venkat Addala Computational Biologist O__ ---- _/ /`_ --- (*) \(*) -- --001a11c22634410cc304e6a17b59 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,=A0

I have a tuple in this = format, which is retrived using MySQLdb, now i want to remove \n and extra = spaces in this.

13L, 'ssDsC', 'CEs5s1, DsC', '= srylscetsmight\nghtscetylsse', '3', '3q25.1', 151531861= L, 151546276L, '+', '1 kjafhkfhlad\fdfdsdf ghtscetylsse \nconte= nds the sctivity of dsfdk srylsmine N-scetyltrsnsfersse thst scts ss s csts= lyst inbiotrsnsformstion fghjfg for srylsmine snd bvhghbh smine csrcinogens= . Bgskjdg in ssDsC dfkdkdf in bresst snd prostrste csncer.', ''= , 'Msdhurs \nsgdfgssssvslingegowds', dstetime.dste(2013, 6, 14), No= ne



--
Regards

Venkat Addala= =A0
Computational Biologist
=A0 O__ =A0----
=A0_/ /`_ ---
(*) \(*) --


--001a11c22634410cc304e6a17b59--