Break lines?

Bill Scherer bill.scherer at verizonwireless.com
Tue Feb 26 10:53:07 EST 2008


saneman wrote:
> I have made this string:
>
>
> TITLE          = 'Efficiency of set operations: sort model,
> 		 (cphstl::set::insert(p,e)^n cphstl::set::insert(e)), integer'
>
> But I am not allowed to break the line like that:
>
> IndentationError: unexpected indent
>
> How do I break a line?
>   

by triple quoting:

TITLE = '''Efficiency of set operations: sort model,
	  (cphstl::set::insert(p,e)^n cphstl::set::insert(e)), integer'''


or


TITLE = """Efficiency of set operations: sort model,
	  (cphstl::set::insert(p,e)^n cphstl::set::insert(e)), integer"""





More information about the Python-list mailing list