Specify string with uniform indentation ignored

tobiah st at tobiah.org
Thu Sep 14 18:15:52 EDT 2006


That would be it.  Thanks.

>> Is there a built in way to do this?  I don't much
>> care for:
>>
>> 	string = "function otherlang(){"
>> 	string += "	doit()"
>> 	string += "}"
> 
> textwrap.dedent ought to do exactly what you want.
> 
> --Sam
> 

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list