Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codecs.StreamWriter: reset() on close() #35150

Closed
mzabaluev mannequin opened this issue Sep 10, 2001 · 7 comments
Closed

codecs.StreamWriter: reset() on close() #35150

mzabaluev mannequin opened this issue Sep 10, 2001 · 7 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@mzabaluev
Copy link
Mannequin

mzabaluev mannequin commented Sep 10, 2001

BPO 460474
Nosy @malemburg, @devdanzin

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/malemburg'
closed_at = None
created_at = <Date 2001-09-10.21:55:47.000>
labels = ['type-feature', 'library']
title = 'codecs.StreamWriter: reset() on close()'
updated_at = <Date 2014-02-03.19:54:25.830>
user = 'https://bugs.python.org/mzabaluev'

bugs.python.org fields:

activity = <Date 2014-02-03.19:54:25.830>
actor = 'BreamoreBoy'
assignee = 'lemburg'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2001-09-10.21:55:47.000>
creator = 'mzabaluev'
dependencies = []
files = []
hgrepos = []
issue_num = 460474
keywords = []
message_count = 6.0
messages = ['61066', '61288', '61388', '61389', '114140', '116561']
nosy_count = 3.0
nosy_names = ['lemburg', 'ajaksu2', 'mzabaluev']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'needs patch'
status = 'languishing'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue460474'
versions = ['Python 3.2']

@mzabaluev
Copy link
Mannequin Author

mzabaluev mannequin commented Sep 10, 2001

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)?

@mzabaluev mzabaluev mannequin added the type-feature A feature request or enhancement label Sep 10, 2001
@malemburg
Copy link
Member

Sounds reasonable.

Could you come up with a patch ?

Thanks.

@mzabaluev
Copy link
Mannequin Author

mzabaluev mannequin commented Jan 21, 2008

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.

@malemburg
Copy link
Member

Sorry for not getting back to you earlier.

The ticket was unassigned and only assigned to me yesterday.

@devdanzin devdanzin mannequin added the stdlib Python modules in the Lib dir label Feb 12, 2009
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Aug 17, 2010

Anyone interested in this? Marc-Andre seemed +0.? on this in msg61288.

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Sep 16, 2010

No reply to msg114140.

@BreamoreBoy BreamoreBoy mannequin closed this as completed Sep 16, 2010
@bitdancer bitdancer reopened this Sep 16, 2010
@bitdancer bitdancer added the stale Stale PR or inactive for long period of time. label Sep 16, 2010
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
@AlexWaygood
Copy link
Member

AlexWaygood commented Apr 11, 2022

Given that there has been no activity on this issue for over 11 years, I am closing this feature request as "rejected".

(Cc. @devdanzin, @mzabaluev)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants