[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2022-06-17 Thread Andrew Jaffe
First, let me state that I am in favour of the proposal (although still mildle prefer the ":=" spelling). On 17/06/2022 13:33, Chris Angelico wrote: On Fri, 17 Jun 2022 at 22:14, Steven D'Aprano wrote: If we have: ``` items = ['spam', 'eggs'] def frob(n=>len(items), items=[]): print(n)

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2021-12-09 Thread Andrew Jaffe
On 09/12/2021 08:38, Brendan Barnwell wrote: Your definition is somewhat circular, because you say that a default is "anything that provides a default".  But that says "default" again.  So what is a default? This seems somewhat disingenuous. A "default" is anything that provides a value

[Python-ideas] Re: PEP 671 (late-bound arg defaults), next round of discussion!

2021-12-03 Thread Andrew Jaffe
On 01/12/2021 06:16, Chris Angelico wrote:> I've just updated PEP 671 https://www.python.org/dev/peps/pep-0671/ > with some additional information about the reference implementation, > and some clarifications elsewhere. > > *PEP 671: Syntax for late-bound function argument defaults* > > Questions