[Python-Dev] Partial function application 'from the right' (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Thu Jan 29 21:04:03 CET 2009


Scott David Daniels <Scott.Daniels 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: > splitcomma = 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