Exec Statement Question

Marco Mariani marco at sferacarta.com
Mon Nov 30 11:23:03 EST 2009


Jean-Michel Pichavant wrote:

>>   if which == '':
>>     i = 0
>>     all = ''
>>     while i < len(meanings):
>>       table = '%s\n' % meanings[i]
>>       table += "<table>\n <tr>\n  <td colspan='8'

composing HTML like that is painful, bug prone and insecure

> You should have a look at http://tottinge.blogsome.com/meaningfulnames/

I would also suggest to have a look at lxml.builder, or some kind of 
template system.



More information about the Python-list mailing list