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 pitrou
Recipients benjamin.peterson, conf, ncoghlan, pitrou, trott
Date 2009-06-13.12:47:34
SpamBayes Score 3.2715644e-07
Marked as misclassified No
Message-id <1244897398.4913.18.camel@localhost>
In-reply-to <1244896658.79.0.924648590458.issue5811@psf.upfronthosting.co.za>
Content
> We could fill the buffer while moving its start point to 0. I guess this
> behavior would require a new function (or a new parameter to
> Modules/_io/bufferedio.c:_bufferedreader_fill_buffer() ).
> If you are ok with that I could write a patch.

The buffer is used for both reading and writing and you have to be
careful when shifting it. Besides, the same change (or similar) should
also be done in the Python implementation (in _pyio.py).

If you come up with a patch, please add some tests and check the whole
regression suite passes.
History
Date User Action Args
2009-06-13 12:47:35pitrousetrecipients: + pitrou, ncoghlan, benjamin.peterson, trott, conf
2009-06-13 12:47:34pitroulinkissue5811 messages
2009-06-13 12:47:34pitroucreate