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 py.user
Recipients py.user
Date 2011-07-21.22:31:34
SpamBayes Score 1.1290744e-08
Marked as misclassified No
Message-id <1311287495.04.0.0852522537211.issue12606@psf.upfronthosting.co.za>
In-reply-to
Content
>>> barr = bytearray(b'abcde')
>>> lst = list('abcde')
>>> barr[::-3] = ()
>>> barr
bytearray(b'acd')
>>> lst[::-3] = ()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: attempt to assign sequence of size 0 to extended slice of size 2
>>> del lst[::-3]
>>> lst
['a', 'c', 'd']
>>>

lst[::-3] = () - is more convenient way for deletion
History
Date User Action Args
2011-07-21 22:31:35py.usersetrecipients: + py.user
2011-07-21 22:31:35py.usersetmessageid: <1311287495.04.0.0852522537211.issue12606@psf.upfronthosting.co.za>
2011-07-21 22:31:34py.userlinkissue12606 messages
2011-07-21 22:31:34py.usercreate