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

2021-12-01 Thread role . pythonorg-readers
Chris Angelico wrote: > I've just updated PEP 671 https://www.python.org/dev/peps/pep-0671/ > Questions, for you all: > 1) If this feature existed in Python 3.11 exactly as described, would > you use it? When needed, but I'm uncomfortable with the syntax. > 2) Independently: Is the syntactic dist

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

2021-12-01 Thread role . pythonorg-readers
Brendan Barnwell wrote: > > No. As I mentioned in the earlier thread, I don't support any proposal > in which an argument can "have a default" but that default is not a > first-class Python object of some sort. What if a default is a function? I was inspired by learning Django and saw in model