[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-22 Thread py.user
New submission from py.user : 1) 4.6.4 Mutable Sequence Types | s[i:j] = t | slice of s from i to j is replaced | || by the contents of the iterable t | >>> lst = list('abc') >>> barr = bytearray(b'abc') >>> lst[:1] = 4 Traceback (most recent call last): File "", line 1, in T

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: To my eye, this looks like a bytearray API bug in the bytearray implementation. ISTM, the rhs of a slice assignment needs to be restricted to iterable inputs. I'm marking this as low priority because the documented behaviors (i.e. normal slice assignment

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-23 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

2011-07-23 Thread Georg Brandl
Georg Brandl added the comment: Yes, this is a bug in bytearray and should be fixed. -- assignee: docs@python -> components: -Documentation nosy: +georg.brandl versions: +Python 2.7, Python 3.2 -Python 3.1 ___ Python tracker