On 23/09/2012 19:31, jimbo1qaz wrote:
spots[y][x]=mark fails with a "'str' object does not support item assignment"
error,even though:
a=[["a"]]
a[0][0]="b"
and:
a=[["a"]]
a[0][0]=100
both work.
Spots is a nested list created as a co
On 09/23/2012 07:31 PM, jimbo1qaz wrote:
spots[y][x]=mark fails with a "'str' object does not support item assignment"
error,even though:
a=[["a"]]
a[0][0]="b"
and:
a=[["a"]]
a[0][0]=100
both work.
Spots is a nested list created as a co
On Sunday, September 23, 2012 11:48:11 AM UTC-7, MRAB wrote:
> On 2012-09-23 19:31, jimbo1qaz wrote:
>
> > spots[y][x]=mark fails with a "'str' object does not support item
> > assignment" error,even though:
>
> >>>> a=[["a"]]
&
On 2012-09-23 19:31, jimbo1qaz wrote:
spots[y][x]=mark fails with a "'str' object does not support item assignment"
error,even though:
a=[["a"]]
a[0][0]="b"
and:
a=[["a"]]
a[0][0]=100
both work.
Spots is a nested list created as a copy
On Sun, Sep 23, 2012 at 12:31 PM, jimbo1qaz wrote:
> spots[y][x]=mark fails with a "'str' object does not support item assignment"
> error,even though:
>>>> a=[["a"]]
>>>> a[0][0]="b"
> and:
>>>> a=[["a&
On Sunday, September 23, 2012 11:31:41 AM UTC-7, jimbo1qaz wrote:
> spots[y][x]=mark fails with a "'str' object does not support item assignment"
> error,even though:
>
> >>> a=[["a"]]
>
> >>> a[0][0]="b"
>
>
spots[y][x]=mark fails with a "'str' object does not support item assignment"
error,even though:
>>> a=[["a"]]
>>> a[0][0]="b"
and:
>>> a=[["a"]]
>>> a[0][0]=100
both work.
Spots is a nested list created as a copy of another list.
--
http://mail.python.org/mailman/listinfo/python-list