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.

Author Santiago.Piccinini
Recipients Santiago.Piccinini, amaury.forgeotdarc, lemburg, pitrou
Date 2010-11-07.01:41:39
SpamBayes Score 2.5288438e-11
Marked as misclassified No
Message-id <>
Marc-Andre Lemburg wrote:
>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).

Ok. But builtin's readline buffering works like (I) expected. So there is a difference in behavior between builtins readline an codecs.readline (and it bite me). ¿Maybe it should be noted in documentation?

Python 3.2a3+ (py3k, Nov  6 2010, 16:17:14)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> f = open("foo.txt", "rb", buffering=0)
>>> f.readline()
>>> f.tell()
Date User Action Args
2010-11-07 01:41:42Santiago.Piccininisetrecipients: + Santiago.Piccinini, lemburg, amaury.forgeotdarc, pitrou
2010-11-07 01:41:41Santiago.Piccininisetmessageid: <>
2010-11-07 01:41:40Santiago.Piccininilinkissue10344 messages
2010-11-07 01:41:39Santiago.Piccininicreate