Naming higher order functions
Achim Domma
achim.domma at syynx.de
Thu Jan 31 11:04:03 EST 2002
Hi,
this looks interesting to me, but seems not to work with Python 2.1. Should
it ? If yes, could somebody explain to me why it works ? ;-)
greetings
Achim
"Erno Kuusela" <erno-news at erno.iki.fi> wrote in message
news:kuelk63747.fsf at lasipalatsi.fi...
> hello,
>
> what would be a good name for the following function?
>
> def name_me(n):
> def g(x):
> return x[n]
> return g
>
> "make_nth_getter" came to mind but it doesn't sound that good to me.
>
> -- erno
More information about the Python-list
mailing list