This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tomer.kalish91
Recipients docs@python, tomer.kalish91
Date 2021-04-03.12:33:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617453219.6.0.129506817169.issue43713@roundup.psfhosted.org>
In-reply-to
Content
According to the docs, the sorted function's signature is:
sorted(iterable, *, key=None, reverse=False)
But when printing its help interactively, the signature is:
sorted(iterable, /, *, key=None, reverse=False)
The latter seems to be the correct one, as calling sorted(iterable=arr) will raise a TypeError.

The signature in the docs should be fixed.
History
Date User Action Args
2021-04-03 12:33:39tomer.kalish91setrecipients: + tomer.kalish91, docs@python
2021-04-03 12:33:39tomer.kalish91setmessageid: <1617453219.6.0.129506817169.issue43713@roundup.psfhosted.org>
2021-04-03 12:33:39tomer.kalish91linkissue43713 messages
2021-04-03 12:33:39tomer.kalish91create