How to call a method with variing arguments
Duncan Booth
duncan at NOSPAMrcp.co.uk
Tue Jul 3 03:29:16 EDT 2001
meinmailfilter at gmx.de (Heiko) wrote in
news:e956b5f1.0107022240.776c1734 at posting.google.com:
> Means that I want to call a method with a variing number of arguments
> and the method decides what to do.
>
Have you read the Tutorial that came with your copy of Python? Specifically
try section 4.7.3 Arbitrary Argument Lists
--
Duncan Booth duncan at rcp.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
More information about the Python-list
mailing list