Message263246
| Author | eriknw |
|---|---|
| Recipients | eriknw, martin.panter, ncoghlan, rhettinger, serhiy.storchaka |
| Date | 2016-04-12.13:16:17 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1460466977.97.0.632136227675.issue26729@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
sorted_3.patch corrects the __text_signature__. Behavior of sorted is unchanged. >>> def raises(err, lamda): ... try: ... lamda() ... return False ... except err: ... return True ... >>> import inspect >>> sig = inspect.signature(sorted) >>> # `iterable` is positional-only >>> assert raises(TypeError, lambda: sorted(iterable=[])) >>> assert raises(TypeError, lambda: sig.bind(iterable=[])) >>> # `key` and `reverse` are keyword-only >>> assert raises(TypeError, lambda: sorted([], lambda x: x)) >>> assert raises(TypeError, lambda: sig.bind([], lambda x: x)) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016-04-12 13:16:18 | eriknw | set | recipients: + eriknw, rhettinger, ncoghlan, martin.panter, serhiy.storchaka |
| 2016-04-12 13:16:17 | eriknw | set | messageid: <1460466977.97.0.632136227675.issue26729@psf.upfronthosting.co.za> |
| 2016-04-12 13:16:17 | eriknw | link | issue26729 messages |
| 2016-04-12 13:16:17 | eriknw | create | |