[Python-3000] Pre-PEP: Easy Text File Decoding

Paul Prescod paul at prescod.net
Mon Sep 11 06:11:11 CEST 2006


The PEP doesn't deal with streams. It is about files.

On 9/10/06, David Hopwood <david.nospam.hopwood at blueyonder.co.uk> wrote:
> Paul Prescod wrote:
> > Maybe the guessing algorithm should read the WHOLE FILE.
>
> That wouldn't work for streams (e.g. stdin). The algorithm I gave
> does work for streams, provided that they have a push-back buffer of
> at least 4 bytes.
>
> --
> David Hopwood <david.nospam.hopwood at blueyonder.co.uk>
>
>
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/paul%40prescod.net
>


More information about the Python-3000 mailing list