Why is Python popular, while Lisp and Scheme aren't?

Cimarron Taylor cimarron+google at taylors.org
Sat Nov 9 02:31:12 EST 2002


> What makes Tcl look bad is
>   set rounded [expr int(a + 0.5)]

I agree.  Here what tclsh gives me:

% set a 1.03
1.03
% set rounded [expr int(a + 0.5)]
syntax error in expression "int(a + 0.5)"

Perhaps you intended to write:

% set rounded [expr int($a + 0.5)]
1

Cim



More information about the Python-list mailing list