I must be doing something obviously wrong here. But what is it, and how do I fix?
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)
Have you tried writing a Unicode string, instead of just a str? I.e.,
str
fq.write(u"bingo")
I'm on Mac OS X, but when I tried to write a str, I got the error
TypeError: must be unicode, not str
Writing a Unicode string worked, though.