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

Jay O'Connor joconnor at cybermesa.com
Fri Nov 8 02:46:30 EST 2002


In article <20021108.135935.824272813.9010 at cybermesa.com>, "Jay O'Connor"
<joconnor at cybermesa.com> wrote:

Typo

> set l1 "1 2 3"
> set l2 "4 5 6"
> set l3 [list $l1 $l2]
> set x [lindex [lindex $l3 1] 1]
> puts $x
> 
> results in '5'
> 
> using 'set x(1,1)
> results in an error


The actual code is
	set x $l3(1,1)

which results in 

Error: can't read "l3(1,1)": variable isn't array
    while executing
"set x $l3(1,1)"



More information about the Python-list mailing list