homepage

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 <1460441797.72.0.194442593456.issue26729@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016年04月12日 06:16:37eriknwsetrecipients: + eriknw, rhettinger, ncoghlan, martin.panter
2016年04月12日 06:16:37eriknwsetmessageid: <1460441797.72.0.194442593456.issue26729@psf.upfronthosting.co.za>
2016年04月12日 06:16:37eriknwlinkissue26729 messages
2016年04月12日 06:16:37eriknwcreate

AltStyle によって変換されたページ (->オリジナル) /