Message263145
| Author | eriknw |
|---|---|
| Recipients | eriknw |
| Date | 2016-04-10.17:54:40 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1460310880.55.0.462687598027.issue26729@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The first argument to sorted is positional-only, so the text signature should be: sorted($module, iterable, /, key=None, reverse=False) instead of sorted($module, iterable, key=None, reverse=False) To reproduce the issue, attempt to use "iterable" as a keyword argument: >>> import inspect >>> sig = inspect.signature(sorted) >>> sig.bind(iterable=[]) # should raise, but doesn't >>> sorted(iterable=[]) # raises TypeError |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016-04-10 17:54:40 | eriknw | set | recipients: + eriknw |
| 2016-04-10 17:54:40 | eriknw | set | messageid: <1460310880.55.0.462687598027.issue26729@psf.upfronthosting.co.za> |
| 2016-04-10 17:54:40 | eriknw | link | issue26729 messages |
| 2016-04-10 17:54:40 | eriknw | create | |