Windson Yang <wiwind...@outlook.com> added the comment:

In your first case, *any positive index except 2 will work*, For example:

L = [0, 1, 2]
L[::1], *rest = "abcdef" # L became ['a']
or 
L[::3], *rest = "abcdef" # L became ['a', 1, 2]

I found iff when you change the length of L to 1(L[::3]) or didn't change L at 
all (L[::1], L[::]), this expression will work. But I'm not sure that is what 
you expected.

----------
nosy: +Windson Yang

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36761>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to