
On Sun, Oct 31, 2021 at 1:52 PM Steven D'Aprano <steve@pearwood.info> wrote:
I believe that the PEP should declare that how the unevaluated defaults are stored prior to evaluation is a private implementation detail. We need an API (in the inspect module? as a method on function objects?) to allow consumers to query those defaults for human-readable text, e.g. needed by help(). But beyond that, I think they should be an opaque blob.
I haven't re-posted, but while writing up the implementation, I did add a section on implementation details to the PEP. https://www.python.org/dev/peps/pep-0671/#implementation-details (FWIW, it's very similar to what you were saying in the other thread, only I chose to use Ellipsis, since it's commonly understood as a placeholder, rather than NotImplemented, which is a special signal for binary operators.) ChrisA