Christopher Barker wrote:
> Robin Dunn wrote:
>> Just replace sys.stdout with an object with a write() method that does 
>> what you want.
> 
> I don't think that will do it, as "print" will have already converted 
> the object to a string, and it does that with str(), which calls 
> object.__str__, which used the default encoding....

Ah, you're right.  I didn't think the process through far enough.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to