06.04.12 16:22, rusi написав(ла): > Yes. I hand it to you that I missed the case of explicitly unbalanced > strings. > But are not such cases rare? No, unfortunately. }:-( > For example code such as: > print '"' > print str(something) > print '"' > > could better be written as > print '"%s"' % str(something) Don't forget to escape %.