A few short questions about bzr send implementation for Apple Mail

Harald Meland harald.meland at usit.uio.no
Tue Mar 25 15:30:36 GMT 2008


[Alexander Belchenko]

> Erik Bågfors пишет:
>> Hi
>> I have written support for Apple Mail. Unfortunately, this has to be
>> done using Applescript.  The Applescript is generated in python. The
>> code I have now works, but due to how Applescript works, I need lines
>> longer than 80 characters.  I don't like this at all of course.
>
> You can write long strings in chunks:
>
> f = open('applescript', 'w')
> f.write('beginning of very long string ')
> f.write('continuation of this very long string ')
> f.write('and more more more,')
> f.write('and finally we can put the line endings.\n')
> f.close()

Or even like this:

f.write('beginning of very long string '
        'continuation of this very long string '
        'and more more more,'
        'and finally we can put the line endings.\n')

-- 
Harald



More information about the bazaar mailing list