[New-bugs-announce] [issue38516] PEP 3132 -- Extended Iterable Unpacking inconsistent assignment of * variable
Michael Jaquier
report at bugs.python.org
Fri Oct 18 08:11:14 EDT 2019
New submission from Michael Jaquier <mjaquier at me.com>:
x = [1,2,3]
Case (1)
*b, = x
*b == [1, 2, 3]
Case(2)
*b, _ = x
b = [1,2]
Is it not more logical for this to give consistent values regardless.
i.e.,
*b, = [1,2,3] ; b == [1,2]
*b, _ = [1,3,2] ; b == [1,2] ; _ == [3]
----------
components: Library (Lib)
messages: 354881
nosy: mjaquier
priority: normal
severity: normal
status: open
title: PEP 3132 -- Extended Iterable Unpacking inconsistent assignment of * variable
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38516>
_______________________________________
More information about the New-bugs-announce
mailing list