mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 05:42:30 +00:00
Avoid consequential failures from __setslice__ with non-iterable value
[SVN r1565]
This commit is contained in:
@@ -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
|
||||
#####################################################################
|
||||
|
||||
Reference in New Issue
Block a user