[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] vector type: mutable or immutable



I guess making both would be the most pythonic - python gives you both lists and tuples...

On Fri, May 1, 2009 at 11:04 AM, Jake b <ninmonkeys@xxxxxxxxx> wrote:
Could you make both? Default to mutable, and use VectorConst ( insert
better name ) where needed.

       .offset = Vector3Const(1,2,3)
       .vel = Vector3( offset )

(throw exception when you try to modify a const vector?)
--
Jake