Dynamic Functions

A link published by James Bennett on November 23, 2007. Tagged with arguments, expansion and python. No comments posted.

The * and ** syntax isn’t immediately obvious to most Python newcomers, but is an extremely powerful feature for defining functions or methods which take variable numbers of arguments, or which accept keyword arguments whose names aren’t necessarily known in advance. Marty has taken the time to write up a good introductory article explaining how they work.

Visit site

Comments for this link are closed. If you'd like to share your thoughts on this link with me, please contact me directly.

ponybadge