[issue2918] Merge StringIO/cStringIO in 3.0
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: I updated the patch to use the new module framework. Added file: http://bugs.python.org/file10593/add-stringio-3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2918] Merge StringIO/cStringIO in 3.0
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Committed in r64154. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2918] Merge StringIO/cStringIO in 3.0
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Here's another patch fixes the failing tests. I have tried to support the buffer attribute using following hack: @property def buffer(self): # XXX Hack to support the buffer attribute. buf = codecs.getwriter(self.encoding)(BytesIO(), self.errors) value = self.getvalue() buf.write(value[:self.tell()]) pos = buf.stream.tell() buf.write(value[self.tell():]) buf.stream.seek(pos) return buf.stream but this doesn't work since some application might want to modify the buffer. So, I removed it. Another thing that bothered me were the bogus encoding and errors arguments. So, I also removed them. Added file: http://bugs.python.org/file10577/add-stringio-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2918] Merge StringIO/cStringIO in 3.0
Changes by Humberto Diogenes [EMAIL PROTECTED]: -- nosy: +hdiogenes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2918] Merge StringIO/cStringIO in 3.0
New submission from Brett Cannon [EMAIL PROTECTED]: PEP 3108 calls for StringIO (which is io.StringIO in 3.0) to have an accelerated version behind it when available. Alexandre has been working on this so assigning to him. -- assignee: alexandre.vassalotti components: Library (Lib) messages: 67072 nosy: alexandre.vassalotti, brett.cannon priority: release blocker severity: normal status: open title: Merge StringIO/cStringIO in 3.0 type: behavior versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2918 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com