[Python-Dev] Partial function application 'from the right'
Mike Klaas
mike.klaas at gmail.com
Fri Jan 30 22:20:31 CET 2009
On 29-Jan-09, at 3:38 PM, Daniel Stutzbach wrote:
> On Thu, Jan 29, 2009 at 5:24 PM, Mike Klaas <mike.klaas at gmail.com>
> wrote:
>> And yet, python isn't confined to mathematical notation. *, ** are
>> both overloaded for use in argument lists to no-one's peril, AFAICT.
>
> Certainly, but there is no danger of confusion them for
> multiplication in context, whereas:
>
> split_comma = partial(str.split, ..., ',')
>
> to me looks like "make ',' the last argument" rather than "make ','
> the second argument".
Yes, I agree. I mistakenly thought that that was the proposal under
discussion (that partial(f, ..., 2) == right_curry(f, 2))
-Mike
More information about the Python-Dev
mailing list