Message263222
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. |
|
Date |
User |
Action |
Args |
2016-04-12 05:37:01 | eriknw | set | recipients:
+ eriknw, ncoghlan, martin.panter |
2016-04-12 05:37:01 | eriknw | set | messageid: <1460439421.14.0.581412862214.issue26729@psf.upfronthosting.co.za> |
2016-04-12 05:37:01 | eriknw | link | issue26729 messages |
2016-04-12 05:37:00 | eriknw | create | |
|