[issue38855] test_unpack.py does not catch the unpacking of a set
Zachary Ware
report at bugs.python.org
Tue Nov 19 22:53:49 EST 2019
Zachary Ware <zachary.ware at gmail.com> added the comment:
It's not clear what you're asking for here. Your example works, though the contents of `a` and `c` will each be an arbitrary member of S and `b` the rest of the members of S and you have no guarantee of what you'll get. If you want to be sure of what each name will be attached to, just do `a, *b, c = sorted(S)`.
----------
nosy: +zach.ware
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38855>
_______________________________________
More information about the Python-bugs-list
mailing list