Message341242
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. |
|
Date |
User |
Action |
Args |
2019-05-02 01:22:34 | Windson Yang | set | recipients:
+ Windson Yang, gvanrossum, georg.brandl, serhiy.storchaka, wim.glenn |
2019-05-02 01:22:34 | Windson Yang | set | messageid: <1556760154.33.0.805853878913.issue36761@roundup.psfhosted.org> |
2019-05-02 01:22:34 | Windson Yang | link | issue36761 messages |
2019-05-02 01:22:34 | Windson Yang | create | |
|