[issue39231] Mistaken notion in tutorial

Mark Dickinson report at bugs.python.org
Wed Jan 8 07:58:32 EST 2020


Mark Dickinson <dickinsm at gmail.com> added the comment:

[Robert]

> It is not a "positional argument" but an "optional argument".

I don't think I understand. Here the phrase "positional argument" in the docs is, I assume, referring to the parameter "ham: str" in the parameter list. So it's not optional; it's a required, positional-or-keyword parameter.

I don't know whether the text of this section should be being tightened up with respect to the distinction between (formal) parameters and actual arguments, though. There's a tradeoff between readability and accessibility on the one hand, and technical accuracy on the other.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39231>
_______________________________________


More information about the Python-bugs-list mailing list