Args starting w/ *?

J

Jalil Feghhi

I have seen functions args that have one or two stars (*) in front of
their names. I was wondering why stars are used exactly. I am new to
Python but as far as I know there is no concept of pointers (or is there?).

Thanks,

-Jalil
 
M

Michael Spencer

This is a common question, but IMO it is relatively hard to find the answer
in the docs unless you know what you're looking for.

Under PythonWin, searching indexed manual, none of :
*, **, argument, arguments, function, signature, keyword, positional
yields the answer

Michael

fBechmann said:
I'm quite new to this newsgroup and I found it to be helpfull for my
tiny problems many times so for sure I'm not the one to announce a
leading oppinion.

Nevertheless I think that topics on questions that could be answered w/
a 2 min look into the great documentation are somehow overwhelming the
newsgroup - it's just distracting.

Too be constructive and polite:
http://www.python.org/doc/current/tut/node6.html#SECTION006730000000000000000
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,178
Messages
2,570,955
Members
47,509
Latest member
Jack116

Latest Threads

Top