[Python-ideas] Call two or more functions with one args

2021-11-05 Thread one last Day
Call two or more functions with one args. one last Day إلى python-dev-owner قبل 7 أيام التفاصيل #While reading about functions in mathematics, a figure representing the sum of two functions caught my attention. #I found it would be useful to add it in the next version of Python. Of course, what is

[Python-ideas] Re: Call two or more functions with one args

2021-11-05 Thread Chris Angelico
On Sat, Nov 6, 2021 at 1:06 AM one last Day wrote: > > > Call two or more functions with one args. > one last Day > إلى python-dev-owner > قبل 7 أيام > التفاصيل > > #While reading about functions in mathematics, a figure representing the sum > of two functions caught my attention. > #I found it w

[Python-ideas] Re: PEP 671: Syntax for late-bound function argument defaults

2021-11-05 Thread Stephen J. Turnbull
Rob Cliffe via Python-ideas writes: > So PEP 671 merely attempts to restore functionality that was > (regrettably IMO) left out as a result of that early decision. This is a *new* feature, which adds syntax. A lot of contributors to this thread think it's useful enough to overcome the normal

[Python-ideas] Re: PEP 671: Syntax for late-bound function argument defaults

2021-11-05 Thread Chris Angelico
On Sat, Nov 6, 2021 at 2:57 AM Stephen J. Turnbull wrote: > Still on the agenda as far as I can see: > > 1. Syntax. The proposals I can recall are > a. x=>default > b. *x=default > c. x=@default > d. maybe putting * or @ on the opposite component in b and c? > e. a keyw

[Python-ideas] Re: Call two or more functions with one args

2021-11-05 Thread Steven D'Aprano
On Fri, Nov 05, 2021 at 03:53:56AM -0700, one last Day wrote: > Call two or more functions with one args. [...] This is like a version of map() except that instead of calling one function with a bunch of arguments, it calls many arguments with one set of arguments. It seems to be related to the

[Python-ideas] Re: PEP 671: Syntax for late-bound function argument defaults

2021-11-05 Thread David Mertz, Ph.D.
My "vote" if one has to be chosen: #1: x=defer default #2: @x=default #3: x=@default #4: x=>default #5:. *x=default Explicit is better than implicit. ___ Python-ideas mailing list -- [email protected] To unsubscribe send an email to python-id

[Python-ideas] Re: PEP 671: Syntax for late-bound function argument defaults

2021-11-05 Thread Chris Angelico
On Sat, Nov 6, 2021 at 10:46 AM David Mertz, Ph.D. wrote: > > My "vote" if one has to be chosen: Preferences are very important. This isn't a "vote" in the sense that the one with the most choices will be selected, but I always want to hear people's preferences. > #1: x=defer default > #2: @x=