[Tutor] timed functions? Timeouts?
Alan Gauld
alan.gauld at btinternet.com
Tue May 20 20:12:08 CEST 2008
"Kent Johnson" <kent37 at tds.net> wrote
>> Then I'm a little confused by the * and ** - they look just like
>> the
>> pointer and pointer to a pointer in C++, but do they perform the
>> same
>> function in python?
>
> No, these are not pointers, they allow passing arbitrary lists and
> dicts of arguments. I don't know of a good writeup of this syntax;
Soince you (the OP) seem to know some C the */** parameters
are somewhat similar to varargs in C. (as used in functions like
printf)
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
More information about the Tutor
mailing list