[Edu-sig] Emulating Pascal input

Michael Williams michael.williams at st-annes.oxford.ac.uk
Wed May 22 08:25:02 EDT 2002


On Wed, May 22, 2002 at 07:42:59AM -0400, Guido van Rossum wrote:
> [Michael Williams is looking for a readln() replacement]
> 
> If you're willing to change the input format to require commas between
> numbers, you could use the standard built-in function input(), which
> was put in Python specifically to support this kind of usage.

I did consider this but:

- the quasi-standard way of delimiting data is whitespace -- not
  commas.

- allowing users of programs to interact using input() is A Bad Thing.

-- 
Michael





More information about the Python-list mailing list