Specify string with uniform indentation ignored

sjdevnull at yahoo.com sjdevnull at yahoo.com
Thu Sep 14 17:32:17 EDT 2006


tobiah wrote:
> Is there a built in way to do this?  I don't much
> care for:
>
> 	string = "function otherlang(){"
> 	string += "	doit()"
> 	string += "}"

That can be somewhat simplified to:
string = "function otherlang(){"\
         "    doit()"\
         "}"
It's not exactly what you wanted, I know.




More information about the Python-list mailing list