[Python-Dev] Partial function application 'from the right'

Daniel Stutzbach daniel at stutzbachenterprises.com
Fri Jan 30 00:38:29 CET 2009


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".

--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090129/c5e5d266/attachment.htm>


More information about the Python-Dev mailing list