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 eriknw
Recipients eriknw, martin.panter, ncoghlan, rhettinger
Date 2016-04-12.06:16:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
That's a fair and valid point, Raymond.  "sorted_2.patch" was submitted for consideration.  Either __text_signature__ is wrong, or the call argument handling is wrong.  One should be fixed.

Having a flexible call signature as if sorted were a user-defined function, such as "def sorted(iterable, key=None, reverse=False):", does allow for programmatic use of the introspected signature.  Here, using "iterable=" as a keyword can be convenient.

"sorted_1.diff" is wrong.  To match the existing call signature, __text_signature__ should be:

sorted($module, iterable, /, *, key=None, reverse=False)

I don't know any other builtin with a signature like this.  Such a signature may be a point of confusion for people learning Python ("what are those funny symbols?!"), who often encounter sorted early on.
Date User Action Args
2016-04-12 06:16:37eriknwsetrecipients: + eriknw, rhettinger, ncoghlan, martin.panter
2016-04-12 06:16:37eriknwsetmessageid: <>
2016-04-12 06:16:37eriknwlinkissue26729 messages
2016-04-12 06:16:37eriknwcreate