This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Windson Yang
Recipients Windson Yang, georg.brandl, gvanrossum, serhiy.storchaka, wim.glenn
Date 2019-05-02.01:22:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556760154.33.0.805853878913.issue36761@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-02 01:22:34Windson Yangsetrecipients: + Windson Yang, gvanrossum, georg.brandl, serhiy.storchaka, wim.glenn
2019-05-02 01:22:34Windson Yangsetmessageid: <1556760154.33.0.805853878913.issue36761@roundup.psfhosted.org>
2019-05-02 01:22:34Windson Yanglinkissue36761 messages
2019-05-02 01:22:34Windson Yangcreate