[Tutor] can you explain string replacement syntax and comma separated statements

anil maran anilmrn at yahoo.com
Sun Aug 6 10:00:55 CEST 2006


    text = """From: the bugman <y... at example.com> 
 To: the bugfixer <y... at example.com> 
 Subject: bug: %s: %s (%s) 
 Content-Type: multipart/mixed; boundary="----here----" 
 
------here---- 
 Content-Type: text/plain 
 Content-Disposition: inline 
 
%s 
 
%s 
 
------here---- 
 Content-Type: text/html; name="bug.html" 
 Content-Disposition: attachment; filename="bug.html" 
 
""" % (tb[0], tb[1], web.ctx.path, web.ctx.method+' '+web.ctx.home+web.ctx.f 
 ullpath, 
      ''.join(traceback.format_exception(*tb)), 
     text += str(web.djangoerror()) 



 		
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060806/7a85df7a/attachment.html 


More information about the Tutor mailing list