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
Date 2016年04月12日.05:36:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460439421.14.0.581412862214.issue26729@psf.upfronthosting.co.za>
In-reply-to
Content
Interesting observation, Martin.
Upon further consideration, the call signature for sorted really is quite odd. It doesn't behave like any other builtin function. Currently, "iterable" is positional-only, and "key=" and "reverse=" are keyword only. I would only expect such behavior for functions with variadic *args.
I uploaded a new patch so that the call signature matches the original __text_signature__. This means "iterable" may be given as a keyword argument, and "key" and "reverse" may be given as positional arguments.
I added tests for the new behavior, and all tests pass for me.
History
Date User Action Args
2016年04月12日 05:37:01eriknwsetrecipients: + eriknw, ncoghlan, martin.panter
2016年04月12日 05:37:01eriknwsetmessageid: <1460439421.14.0.581412862214.issue26729@psf.upfronthosting.co.za>
2016年04月12日 05:37:01eriknwlinkissue26729 messages
2016年04月12日 05:37:00eriknwcreate

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