Re: functools.partial [was Re: and on - topic and and off topic]

2016-07-29 Thread Matt Wheeler
On Fri, 29 Jul 2016, 09:20 Steven D'Aprano, wrote: > I'm not sure that partial is intended as an optimization. It may end up > saving time by avoiding evaluating arguments, but that's not why it exists. > It exists to enable the functional programming idiom of partial evaluation > in a simpler, m

functools.partial [was Re: and on - topic and and off topic]

2016-07-28 Thread Steven D'Aprano
On Fri, 29 Jul 2016 12:23 am, Sivan Greenberg wrote: > 1. When is the use of functools.partial beneficial? When can it be a > hindrance? Perhaps it can save on func argument evaluation time when > creating many invocations for asycn exec? I'm not sure that partial is intended as an optimization.

Re: and on - topic and and off topic

2016-07-28 Thread Steven D'Aprano
On Fri, 29 Jul 2016 12:23 am, Sivan Greenberg wrote: > Hi All, > > First apologies for the rather off topic but I grep'd over the existing > mailing lists and couldn't find one that's suitable, at least judging by > the titles. Too many UNRELATED questions! Split them over separate posts! Resp

and on - topic and and off topic

2016-07-28 Thread Sivan Greenberg
Hi All, First apologies for the rather off topic but I grep'd over the existing mailing lists and couldn't find one that's suitable, at least judging by the titles. My inquiry is both technical and social, first for the technical stuff: 1. When is the use of functools.partial beneficial? When