On 12/22/06, Fredrik Lundh <[EMAIL PROTECTED]> 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/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com