[Tutor] ValueError:too many values to unpack (passing 2d array to class)

Kent Johnson kent37 at tds.net
Wed Sep 19 17:43:55 CEST 2007


Carnell, James E wrote:

>         s,arrayEnv = arrayEnv####### THIS MIGHT BE MY PROBLEM Is it just 
> copying a pointer?#######

I think you want
s.arrayEnv = arrayEnv

note the period where you have a comma.

and yes, assignment just makes a new reference to the same object, it 
does not make a copy.

Kent




More information about the Tutor mailing list