A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-January/085681.html below:

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

[Python-Dev] Partial function application 'from the right'Mike Klaas mike.klaas at gmail.com
Fri Jan 30 00:24:38 CET 2009
On 29-Jan-09, at 3:21 PM, Daniel Stutzbach wrote:

> On Thu, Jan 29, 2009 at 4:04 PM, Antoine Pitrou  
> <solipsis at pitrou.net> wrote:
> Alexander Belopolsky <alexander.belopolsky <at> gmail.com> writes:
> > By this analogy, partial(f, ..., *args) is right_partial with '...'
> > standing for any number of missing arguments.  I you want to specify
> > exactly one missing argument, you would want to write partial(f, :,
> > *args), which is not a valid syntax even in Py3.
>
> Yes, of course, but... the meaning which numpy attributes to  
> Ellipsis does not
> have to be the same in other libraries. Otherwise this meaning would  
> have been
> embedded in the interpreter itself, while it hasn't.
>
> The meaning which numpy attributes to Ellipsis is also the meaning  
> that mathematical notation has attached to Ellipsis for a very long  
> time.

And yet, python isn't confined to mathematical notation.  *, ** are  
both overloaded for use in argument lists to no-one's peril, AFAICT.

-Mike
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4