Message277594
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 |
|
Date |
User |
Action |
Args |
2016-09-28 08:09:31 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, vstinner, larry, ned.deily, kayhayen, Demur Rumed |
2016-09-28 08:09:30 | serhiy.storchaka | set | messageid: <1475050170.41.0.0331019534448.issue28257@psf.upfronthosting.co.za> |
2016-09-28 08:09:30 | serhiy.storchaka | link | issue28257 messages |
2016-09-28 08:09:30 | serhiy.storchaka | create | |
|