Marc-Andre Lemburg <m...@egenix.com> added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: > > Antoine, should codecs.open() be removed or simply aliased to open()?
Both is not possible: codecs.open() provides a different API than open(). Unlike open(), codecs.open() allow use of all available codecs, not just ones that decode to Unicode. Regarding the issue itself: I think this is a wrong interpretation of what the buffering parameter does. File buffering is different from .readline() buffering (which can be customized on a per-call basis by specifying a size parameter). Besides, switching buffering off in open() is only allowed for binary files, so open() wouldn't "solve" the mentioned behavior. The only way to implement "unbuffered" .readline() in the way that Santiago appears to be after would be to set the size parameter to 1 for all .readline() calls. That would result in very poor performance, though. I think we should close this issue as "won't fix". ---------- nosy: +lemburg _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10344> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com