This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "Fatal Python error" from cStringIO's writelines
Type: Stage:
Components: Extension Modules Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: mwh Nosy List: mwh, spiv
Priority: normal Keywords: patch

Created on 2005-09-22 07:45 by spiv, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cStringIO.diff spiv, 2005-09-22 07:45 patch to fix bug in O_writelines
Messages (2)
msg48748 - (view) Author: Andrew Bennetts (spiv) Date: 2005-09-22 07:45
This patch fixes a bug demonstrated by the following code:

def i():
    yield "line1"
    raise KeyboardInterrupt()

import cStringIO
sio = cStringIO.StringIO()
sio.writelines(i())
msg48749 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-09-22 09:20
Logged In: YES 
user_id=6656

OK, this is checked in (along with your other patch) as:

Lib/test/test_StringIO.py revision 1.20
Misc/ACKS revision 1.296
Misc/NEWS revsision 1.1375
Modules/cStringIO.c revision 2.50

Thanks!
History
Date User Action Args
2022-04-11 14:56:13adminsetgithub: 42397
2005-09-22 07:45:01spivcreate