[Python-3000] Pre-PEP: Simple input built-in in Python 3000

Guido van Rossum guido at python.org
Sat Dec 23 03:14:09 CET 2006


On 12/22/06, Fredrik Lundh <fredrik at pythonware.com> wrote:
> Guido van Rossum wrote:
>
> > I like the exact proposal made here better than any of the
> > alternatives mentioned so far.
> >
> > - Against naming it readline(): the "real" readline doesn't strip the
> > \n and returns an empty string for EOF instead of raising EOFError; I
> > believe the latter is more helpful for true beginners' code.
>
> given how much trouble true beginners have with exceptions, that's far
> from obvious.

But they typically aren't used to entering EOF either; EOF is not
exactly a typical input in an interactive program, and having to enter
it typically means you're talking to a Unix utility that's not really
designed for interactive use.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list