On Sun, Oct 31, 2021 at 1:52 PM Steven D'Aprano <st...@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 _______________________________________________ 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/FQD7GBBF76UUJEPWRSJPGSZOFRQKGVR6/ Code of Conduct: http://python.org/psf/codeofconduct/