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

2007-09-19 Thread Kent Johnson
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 c

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

2007-09-19 Thread Carnell, James E
Any help would greatly appreciated. Question: I am getting the following error from the validMove function: ValueError: too many values to unpack This program (currently) consists of a 2dArray and objects (represented by integers) in that array that can be moved. I am guessing that it has to d