On 2021-12-08 09:59, Chris Angelico wrote:
On Thu, Dec 9, 2021 at 4:55 AM Stephen J. Turnbull
<stephenjturnb...@gmail.com> wrote:
But the "good idea" of general deferreds is only marginally relevant
to our -1s. It's those -1s that constitute the main issue for Chris,
since they're a noisy signal that the SC might think as we do.
Please explain to me *exactly* what your arguments against the current
proposal are. At the moment, I am extremely confused as to what people
actually object to, and there's endless mischaracterization and
accusation happening.
Can we actually figure out what people are really saying, and what the
problems with this proposal are?
1. The status quo is fine. Using None or another sentinel and checking
for it in the body has worked for many years and is not that big a
problem. In theory improvement is always possible, but there is no
urgency to change anything until we have a proposal with fewer
downsides. In addition, as discussed in some posts on this list, not
even all cases of None/sentinel defaults will be obviated by this proposal.
2. Most of the proposed syntaxes make it difficult to visually
distinguish the late and early-bound defaults (because they all look
similar to a plain equals sign which will still mean a regular
early-bound default).
3. Regardless of the syntax, having the potential for def-time and
call-time behavior to be mixed and interleaved in arbitrary ways within
the same function signature is confusing.
4. Currently anything that is a function default is some kind of Python
object that can be inspected, interacted with, and used independently of
the function/argument whose default it is. This proposal breaks that
assumption. In other words I don't want anything that is "a default"
but is not a "default VALUE".
--
Brendan Barnwell
"Do not follow where the path may lead. Go, instead, where there is no
path, and leave a trail."
--author unknown
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/PZ4E5SACZ6I7REVLHZWIKVR4C3S6YMYL/
Code of Conduct: http://python.org/psf/codeofconduct/