Chris Withers wrote: > Steve Holden wrote: > >>> Is there a how-to for this anywhere? The email package's docs are >>> short on examples involving charsets, unicode and the like :-( >>> >> Well, it would seem like the easiest approach is to monkey-patch the >> use of cStringIO to StringIO as recommended and see if that fixes your >> problem. Wouldn't it? > > > No, not really, since at best that's a nasty (and I meant really nasty) > hack. I'm using the email package as part of a library that I'm building > which is to be used with various frameworks. Monkey patching modules is > about as bad as it gets in that situation... > > At worst, and most likely based on my past experience of (c)StringIO > being used to accumulate output, it won't make a jot of difference... > Under those circumstances you probably know best ...
regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio.us/steve.holden -- http://mail.python.org/mailman/listinfo/python-list