Message277594
| Author |
serhiy.storchaka |
| Recipients |
Demur Rumed, kayhayen, larry, ned.deily, rhettinger, serhiy.storchaka, vstinner |
| Date |
2016年09月28日.08:09:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1475050170.41.0.0331019534448.issue28257@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Proposed patch fixes error message for var-positional arguments. It adds new opcode BUILD_TUPLE_UNPACK_WITH_CALL.
>>> min(1, *2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: min() argument after * must be an iterable, not int
>>> min(*[1], *2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: min() argument after * must be an iterable, not int |
|