On Mar 26, 4:32 pm, Jervis Whitley <jervi...@gmail.com> wrote: > >>>>>> class Vector(list): > > >>> ... def __add__(self, other): > >>> ... return map(add, self, other) > >>> ...>>> x = Vector([1,2]) > > I've used the complex type for a similar problem (2D Cartesian points) > in the past, I saw the suggestion > once on the pygame list. > > >>> x = complex(1,2) > >>> x + x > (2 + 4j)
But those are floats aren't they? Don't games use stuff like pixels per parsec? :-) > > Cheers, > > Jervis -- http://mail.python.org/mailman/listinfo/python-list