Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'skip:p 60': 0.05; '"""': 0.07; '>>>>': 0.09; 'pgp': 0.09; 'message-----': 0.12; 'am,': 0.13; 'wrote:': 0.15; '"...': 0.16; '-----begin': 0.16; '-----end': 0.16; '3.2.1': 0.16; 'gnupg': 0.16; 'hash:': 0.16; 'rantingrick': 0.16; 'subject:PEP': 0.16; 'thunderbird': 0.16; 'url:enigmail': 0.16; 'url:mozdev': 0.16; 'def': 0.16; 'comment:': 0.19; 'received:209.85.210.174': 0.19; 'received:mail- iy0-f174.google.com': 0.19; 'header:In-Reply-To:1': 0.22; "shouldn't": 0.23; 'windows': 0.26; 'id:': 0.29; 'skip:+ 60': 0.30; 'print': 0.32; 'signed': 0.32; 'message-id:@gmail.com': 0.32; 'to:addr:python-list': 0.34; 'header:User-Agent:1': 0.34; 'preserve': 0.35; 'some': 0.37; 'but': 0.37; 'using': 0.37; 'received:192': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'received:192.168.1': 0.39; 'version:': 0.39; 'to:addr:python.org': 0.39; 'might': 0.39; 'received:209': 0.40; 'watch': 0.63; "'foo'": 0.84; '5.0': 0.84; '10:32': 0.91; 'skip:9 60': 0.93; 'subject:Proposal': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=GB7OPeWHBBB8SBqo+iwOqlr+bj1McPdD/zNv51vQ2dw=; b=xCS7YbWvsJKC++KiDv5o6aah/2lIqANgF/yv25LpdJV2LTR4iMMmZChkV9laR8NoiC wyZeARie4aUPYsNE0wqNfz4g1chk7CbvS4oxIwxJwFcoYp0tNSJWQXbUG0MwhgZoCWcS NUHZHDRgUCGz4wXZi76Xw5PJkGosXZcQsIsMw= Date: Sat, 16 Jul 2011 18:03:50 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: "comp.lang.python" Subject: Re: Proposal to extend PEP 257 (New Documentation String Spec) References: <120629e8-3b37-4e8c-a472-cd361de15de4@g9g2000yqb.googlegroups.com> In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310857442 news.xs4all.nl 23882 [2001:888:2000:d::a6]:45091 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9652 -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 On 2011.07.16 10:32 AM, rantingrick wrote: > This method will preserve indention. However some might > blubber..."Yeah but then you have to remove the arrows, boo :( "... > well just watch and learn kiddo: > >>>> s = """ > def foo(): --->for x in range(10): --->--->print 'foo' """ >>>> s = s.replace('--->', ' ') print s > > def foo(): for x in range(10): print 'foo' > >>>> Shouldn't that be s = s.replace('--->', '\t') ? :p - -- CPython 3.2.1 | Windows NT 6.1.7601.17592 | Thunderbird 5.0 PGP/GPG Public Key ID: 0xF88E034060A78FCB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEbBAEBAwAGBQJOIhjWAAoJEPiOA0Bgp4/LdgYH+Mi1Fs5iUbwa77K7ta65WqG2 Ga1gOmqtD+wWn6NwM/5uFfCPhYVUbiGzr0J4BZn11SbmNEa7/ePKmg7F4C1ShJBe CiZzKA2yhP2rkQzsvwExYSEJQi8Xdrx4qnyDRGyFBbolPFxugM2+pm1cghzgF6po +meJQfpGNKvsgAWwxLLP2MRy10QHfKH6VdlIToMbgMtpQiEI2/qVBZWq5QZ6bMcG 9RMFMDUiEXSlWMhjenRPL9sc+9m5ZWgd6wSHDvCG0Dg7NRIIvdod8V+bvJIkLGln PLC5h3Oq25l+YJI6opeEaXtD24SqI3MSmNIRQhNTKMLfe+owQCEGN7U50aQE/Q== =wpRx -----END PGP SIGNATURE-----