Raymond Hettinger <raymond.hettin...@gmail.com> 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 from an iterable) appear to be working fine.  So, there is no 
rush to take away the gratuitous API extension that accepts an integer input 
where a slice is usually expected.  The extension is not entirely harmless 
though -- we do lose the error-checking for the common mistake of writing 
s[i:j]=x instead of s[i:j]=[x].

----------
nosy: +rhettinger
priority: normal -> low

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12617>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to