Division oddity

Paul Rubin http
Tue Jan 13 20:08:58 CET 2004

Peter Hansen <peter at engcorp.com> writes:
> > Well, the documentation for "input()" says "Equivalent to
> > eval(raw_input(/prompt/))". Perhaps it should say "/Usually/
> > equivalent...."
> I remember reading that too, and just assumed that at this point
> it was in fact *implemented* that way, as a simple alias.  Maybe
> it should be...

Python has no support for macros or aliases, and it would be silly
to add some special kludge for input().  The user needs to be able
to redefine the function and so forth too.

More information about the Python-list mailing list