[Tutor] Required method to make foo(*Vector(0,0,0)) work.
John Fouhy
john at fouhy.net
Wed Dec 19 03:42:48 CET 2007
On 19/12/2007, Adam Bark <adam.jtm30 at gmail.com> wrote:
> I want to be able to get the values for my vector class but I don't know
> what method you need to get the * thing to work ie how to make it a sequence
> i think. Anybody know how to do this?
> Thanks in advance.
If you're confused about python's *args / **kwargs syntax, this post I
wrote a while ago might help:
http://mail.python.org/pipermail/tutor/2007-April/053725.html
Otherwise, as Kent says, we need more information.
--
John.
More information about the Tutor
mailing list