On Friday, September 12, 2014 11:20:27 AM UTC-5, [email protected] wrote: > > Actually, > a = 1 > a[1] > is also valid. > > But > a = 1 > a[1] = 2 > is not: is `1` an array or not? >
Iterability, immutability, and array-ness are separate properties.
On Friday, September 12, 2014 11:20:27 AM UTC-5, [email protected] wrote: > > Actually, > a = 1 > a[1] > is also valid. > > But > a = 1 > a[1] = 2 > is not: is `1` an array or not? >
Iterability, immutability, and array-ness are separate properties.