On 3/10/2010 12:37 AM, Gabriel Genellina wrote: >> if (next != 0): >> (self.y, self.x) = (next.y, next.x) In Python3, next is a builtin function. Choose a different name, at least in public code ;=).