Nikolaus Rath added the comment:

Wow, I didn't realize that programming Python using the C interface was that 
tedious and verbose. I have attached a work-in-progress patch. It is not 
complete yet, but maybe somebody could already take a look to make sure that 
I'm not heading completely in the wrong direction.

Regarding StringIO.set_encoding(): I thought about this a bit, but I couldn't 
come up with a convincing scenario where having a no-op implementation would 
clearly help or or clearly hurt. Personally I would therefore to not provide it 
for now. If it turns out to be a problem, it can easily be added. But if we add 
it now and it turns out to have been a bad choice, it's probably much harder to 
remove it again.

----------
Added file: http://bugs.python.org/file33855/set_encoding-3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15216>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to