This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients docs@python, ezio.melotti, py.user, rhettinger
Date 2011-07-23.02:50:55
SpamBayes Score 3.420797e-05
Marked as misclassified No
Message-id <1311389456.78.0.584021670451.issue12617@psf.upfronthosting.co.za>
In-reply-to
Content
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].
History
Date User Action Args
2011-07-23 02:50:57rhettingersetrecipients: + rhettinger, ezio.melotti, docs@python, py.user
2011-07-23 02:50:56rhettingersetmessageid: <1311389456.78.0.584021670451.issue12617@psf.upfronthosting.co.za>
2011-07-23 02:50:56rhettingerlinkissue12617 messages
2011-07-23 02:50:55rhettingercreate