New submission from Tomer Kalish <tomer.kalis...@gmail.com>:
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. ---------- assignee: docs@python components: Documentation messages: 390122 nosy: docs@python, tomer.kalish91 priority: normal severity: normal status: open title: sorted() signature is not accurate in the documentation type: resource usage versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43713> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com