From: Kent Dahl Date: 2002-09-19T15:59:54+09:00 Subject: Re: If Statement Help and param passing "Matthew, Graeme" wrote: > I have noticed that some params in methods / function are passed as follows: > > object.method(value, *data) > > is the * character serving a purpose here, eg passing by value rather than > reference ? It unpacks an Array, passing each element as a separate argument to the method. I.e. object.method(value, a, b, c) is equivalent to data = [a, b, c] object.method(value, *data) if I recall correctly. -- (\[ Kent Dahl ]/)_ _~_ __[ http://www.stud.ntnu.no/~kentda/ ]___/~ ))\_student_/(( \__d L b__/ NTNU - graduate engineering - 5. year ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)