----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <zope@zope.org>
Sent: Thursday, July 21, 2005 12:14 PM
Subject: [Zope] Python formatting question


In a Python script, how can I break up a SQL statement over more than
one line?  For example, to transform

#generate the sql statement
sql="DELETE FROM tblUsers WHERE user_name LIKE '%'"

to:

#generate the sql statement
sql="DELETE FROM tblUsers
      WHERE user_name LIKE '%'"

...does not work. Is there a way to break lines?

in python you can continue a logical line over several physical lines by placing a '\' character in the last position of the line you want continued.


jh

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to