Hmm, in both of the examples you gave, you only had one triple quote. Probably your problem is that you need to finish the string with a secondf triple quote. Eg s = '''''' """Here is a very long string that can if we wish span several...""" works. Alex.