
On Thu, 13 May 2021 13:44:54 +0100 Steve Dower <steve.dower@python.org> wrote:
On 13May2021 1248, Petr Viktorin wrote:
On 13. 05. 21 11:45, Antoine Pitrou wrote:
Le 13/05/2021 à 11:40, Irit Katriel a écrit :
On Thu, May 13, 2021 at 10:28 AM Antoine Pitrou <antoine@python.org <mailto:antoine@python.org>> wrote:
I agree that <optional> is a reasonable spelling.
I initially suggested <optional>, but now I'm not sure because it doesn't indicate what happens when you don't provide it (as in, what is the default value). So now I'm with <derived> or <implicit>.
"<derived>" makes think of a derived class, and leaves me confused. "<implicit>" is a bit better, but doesn't clearly say what the default value is, either. So in all cases I have to read the docstring in addition to the function signature.
Is <default> the term you're looking for?
Perhaps <unspecified> or <missing>?
Now that I read more about the specific use case, though, I think "<implicit>" really describes it accurately. It's not that the information is missing, it's that it's already implied in another argument. Quoting the documentation: """Since Python 3.10, instead of passing value and tb, an exception object can be passed as the first argument.""" (meaning the traceback is implicitly gotten from the exception object which is passed as first argument) Regards Antoine.