Message140832
| 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:35 | py.user | set | recipients:
+ py.user |
| 2011年07月21日 22:31:35 | py.user | set | messageid: <1311287495.04.0.0852522537211.issue12606@psf.upfronthosting.co.za> |
| 2011年07月21日 22:31:34 | py.user | link | issue12606 messages |
| 2011年07月21日 22:31:34 | py.user | create |
|