Issue 460474: codecs.StreamWriter: reset() on close() (original ) (raw )Created on 2001-09-10 21:55 by mzabaluev , last changed 2022-04-10 16:04 by admin .
Messages (6)
msg61066 - (view)
Author: Mikhail Zabaluev (mzabaluev)
Date: 2001-09-10 21:55
A codecs.StreamWriter subclass can presumably hold state between subsequent .write()'s. Its .reset() method should probably finalize encoding as the end of input would do. Would it be reasonable to define the default implementation of codecs.StreamWriter.close(self) which calls codecs.StreamWriter.reset(self), then closes the underlying stream? Same for codecs.StreamWriter.__del__(self)?
msg61288 - (view)
Author: Marc-Andre Lemburg (lemburg) *
Date: 2008-01-20 13:24
Sounds reasonable. Could you come up with a patch ? Thanks.
msg61388 - (view)
Author: Mikhail Zabaluev (mzabaluev)
Date: 2008-01-21 13:13
Wow, it's exciting to receive followups 6+ years after filing the bug. > Could you come up with a patch ? No, I don't do much Python development these days.
msg61389 - (view)
Author: Marc-Andre Lemburg (lemburg) *
Date: 2008-01-21 13:19
Sorry for not getting back to you earlier. The ticket was unassigned and only assigned to me yesterday.
msg114140 - (view)
Author: Mark Lawrence (BreamoreBoy) *
Date: 2010-08-17 18:17
Anyone interested in this? Marc-Andre seemed +0.? on this in .
msg116561 - (view)
Author: Mark Lawrence (BreamoreBoy) *
Date: 2010-09-16 15:26
No reply to .
History
Date
User
Action
Args
2022-04-10 16:04:25
admin
set
github: 35150
2014-02-03 19:54:25
BreamoreBoy
set
nosy: - BreamoreBoy
2010-09-16 17:25:36
r.david.murray
set
status: closed -> languishing
2010-09-16 15:26:55
BreamoreBoy
set
status: open -> closedresolution: out of datemessages: +
2010-08-17 18:17:27
BreamoreBoy
set
nosy: + BreamoreBoy messages: + versions: + Python 3.2, - Python 2.7
2009-02-12 20:37:55
lemburg
set
stage: test needed -> needs patch
2009-02-12 19:45:22
ajaksu2
set
nosy: + ajaksu2 stage: test neededcomponents: + Library (Lib), - Noneversions: + Python 2.7
2008-01-21 13:19:05
lemburg
set
messages: +
2008-01-21 13:13:40
mzabaluev
set
messages: +
2008-01-20 13:24:00
lemburg
set
messages: +
2008-01-20 12:32:26
georg.brandl
set
assignee: lemburg nosy: + lemburg
2001-09-10 21:55:47
mzabaluev
create