* operator--as in *args?
Dustan
DustanGroups at gmail.com
Sun Mar 18 17:40:32 EDT 2007
On Mar 18, 3:53 pm, "7stud" <bbxx789_0... at yahoo.com> wrote:
> Hi,
>
> I can't find any documentation for the * operator when applied in
> front of a name. Is it a pointer?
>
> What about the @ operator?
>
> Are there python names for these operators that would make searching
> for documentation on them more fruitful?
>
> Thanks
For the *star, see apply here:
http://docs.python.org/lib/non-essential-built-in-funcs.html
For example:
aFunction(*(1,2,3))
is equivalent to:
aFunction(1,2,3)
For the @ symbol, I assume you mean function decorators:
http://docs.python.org/ref/function.html
For example:
@someDecorator
def someFunc(): pass
is equivalent to:
def someFunc(): pass
someFunc = someDecorator(someFunc)
More information about the Python-list
mailing list