A RetroSearch Logo

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

Search Query:

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

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

[Python-Dev] Partial function application 'from the right' [Python-Dev] Partial function application 'from the right'Antoine Pitrou solipsis at pitrou.net
Thu Jan 29 21:04:03 CET 2009
Scott David Daniels <Scott.Daniels <at> Acm.Org> writes:
> 
> Antoine Pitrou wrote:
> > ...
> > In py3k, we could also use "..." (the Ellipsis object) to denote 
> > places where an argument is missing, so that:
> >     split_comma = partial(str.split, ..., ',')
> > would do what you want.
> 
> Thus preventing any use of partial when an argument could be an
> the Ellipsis instance.

Obviously, it is the drawback :) But Ellipsis is hardly used anywhere, and it 
reads good in this very use case.



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