2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

Avoid consequential failures from __setslice__ with non-iterable value

[SVN r1565]
This commit is contained in:
Raoul Gough
2003-09-18 17:46:43 +00:00
parent 752542b4b3
commit 1a33896b71

View File

@@ -131,6 +131,13 @@ reset
>>> print_xvec(v)
[ a z d e ]
#####################################################################
# Slice: replace [:] with correct result of previous test
#####################################################################
>>> v[:] = [ 'a', 'z', 'd', 'e' ]
>>> print_xvec(v)
[ a z d e ]
#####################################################################
# Slice: replace [0:2] with a list
#####################################################################