Message263222
| 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: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 |
|