classification
Title: struni: Bytes support for TextIOWrapper.write()
Type: Stage:
Components: Library (Lib) Versions: Python 3.0
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, gvanrossum (2)
Priority: normal Keywords patch

Created on 2007-07-15 15:54 by christian.heimes, last changed 2008-01-06 22:29 by admin.

Files
File name Uploaded Description Edit Remove
textiowrapper_bytes.patch christian.heimes, 2007-07-15 15:54 patch against py3k-struni branch r56398
Messages (2)
msg52879 - (view) Author: Christian Heimes (christian.heimes) Date: 2007-07-15 15:54
The patch fixes support for bytes in TextIOWrapper.write(). It also fixes some unit test like test_uu, too.
msg52880 - (view) Author: Guido van Rossum (gvanrossum) Date: 2007-07-16 19:50
This looks like the wrong approach.  Instead, I'm changing uu.py to explcitly turn the bytes returned by b2a_uu() into a string.  (The alternative would be to require the output file to be opened in binary mode, which makes less sense IMO.)  The change is r56402.
History
Date User Action Args
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-15 15:54:34christian.heimescreate