functions which take functions

Jan Kuiken jan.kuiken at quicknet.nl
Thu Apr 12 13:29:56 EDT 2012


On 4/9/12 20:57 , Kiuhnm wrote:

> Do you have some real or realistic (but easy and self-contained)
> examples when you had to define a (multi-statement) function and pass it
> to another function?

I don't use it daily but the first argument of list.sort, i.e. the
compare function springs to mind.

Jan Kuiken





More information about the Python-list mailing list