[Python-3000] Reimplementing TextIOWrapper in C?
alexandre at peadrop.com
Thu Jan 3 20:09:08 CET 2008
On Dec 28, 2007 3:56 PM, Alexandre Vassalotti <alexandre at peadrop.com> wrote:
> Otherwise, could I simply subclass my StringIO and write the newlines
> conversion facilities in Python?
I tried that, and I found out it doesn't work well either. Again, I
can't reuse IncrementalNewlineDecoder since it expects bytes. So, I
will basically have to reimplement it for unicode, which is kind of an
ugly solution. Just by curious, anyone has a better idea? Otherwise, I
am just going to take the ugly solution.
More information about the Python-3000