String concat across multiple source code lines

Matt mksql at my-deja.com
Wed Aug 2 16:11:25 EDT 2000


Is there a better way to do the following?:

sql = "SELECT * FROM TABLE"
sql = sql + "WHERE TABLE.COL = VAR"
sql = sql + "GROUP BY COL2"

I would prefer a 'cleaner' way of concatinating a single string across
multiple program code lines. When using a triple quote, any indentation
in the code gets included.


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list