[Patches] [Patch #103685] Printing unicode

noreply@sourceforge.net noreply@sourceforge.net
Fri, 09 Feb 2001 04:02:14 -0800


Patch #103685 has been updated. 

Project: python
Category: core (C code)
Status: Open
Submitted by: nobody
Assigned to : lemburg
Summary: Printing unicode

Follow-Ups:

Date: 2001-Feb-09 04:02
By: nobody

Comment:
I hadnt seen that original discussion, and cant find it in the archives now
:-(

However, your summary matches exactly what this patch achieves for files
have __str_before_write__=0

I think we have to require this extra flag to enable the new behaviour. For
example, this prevents breakage of old code that prints to a StringIO
instance.

(Toby Dickenson, tdickenson@geminidataloggers.com)

-------------------------------------------------------

Date: 2001-Feb-08 08:02
By: lemburg

Comment:
I don't remember the details, but there was a discussion about this
problem on python-dev. The outcome was to let Unicode objects
pass through as-is to the file object and then have it apply
whatever conversion it takes.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=103685&group_id=5470