Varargs in Python

10 Jul 2008

"Varargs" is C/C++ (?) name for "variable-length argument lists" for functions and methods, used for example by printf. In python, this: Arbitrary Function Arguments is what you are looking for (Sections 4.7.3 and 4.74).

This was written since most searches produce junk for this answer. Hopefully some web crawler will find this.

Comment 2008-08-06 by None

Just confirming that a google search for 'python function varargs' hit this entry as #4, and it proved to be exactly what I was after. Thanks! :)

Comment 2008-08-28 by None

Just what he said...
Would not have found it otherwise, thank you very much.

Comment 2009-03-18 by None

Another thankful Google searcher here. :-)

Comment 2009-04-27 by None

And another :)

Comment 2009-05-10 by None

beautiful, that was an inspired thought :) thanks from another happy google searcher

Comment 2009-05-28 by None

You're up to number one now in a search for 'python varargs'

Comment 2010-06-28 by None

Another happy Googler.

Comment 2010-08-13 by None

Another happy google searcher here! Thanks for the link.

Comment 2010-12-16 by None

First Google result now and exactly what I was looking for. Thanks!

Comment 2011-02-12 by None

Thanks for helping me find info on python varargs and its usage.