Re: [Python-ideas] Function composition (was no subject)
7 May
2015
7 May
'15
9:01 p.m.
On Thu, May 7, 2015 at 7:09 PM, Jo?o Santos
wrote: On Wed, 6 May 2015 at 16:51 Steven D'Aprano
wrote: I think that there are some questions that would need to be answered. For instance, given some composition:
f = math.sin @ (lambda x: x**2)
what would f.__name__ return? What about str(f)?
Lambdas return '<lambda>' so maybe something like '<composed>'? Then str(f) would be '
'. Would be nice to use "
", incorporating both names, but that could get unwieldy once you compose a bunch of functions.
Maybe it would be better to have '
3269
Age (days ago)
3269
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ivan Levkivskyi