Thursday, July 10, 2008

Varargs in Python

"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.

2 comments:

Morgan said...

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! :)

Tobias Prinz said...

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