[issue33300] Bad usage example in id() DocString
Martin Panter
report at bugs.python.org
Tue Apr 17 16:52:05 EDT 2018
Martin Panter <vadmium+py at gmail.com> added the comment:
It is supposed to be a function signature, similar to the syntax when you define your own function, rather than a usage example of calling the function.
In this case, the slash notation is described by PEP 457. It is supposed to indicate that “obj” is a positional-only parameter, and not a keyword parameter. If that is what you think is incorrect, perhaps you can suggest a place to explain the notation in Issue 21314.
----------
nosy: +martin.panter
superseder: -> Document '/' in signatures
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33300>
_______________________________________
More information about the Python-bugs-list
mailing list