-----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----- -- http://mail.python.org/mailman/listinfo/python-list