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 py.user
Recipients docs@python, py.user
Date 2011-07-25.00:26:29
SpamBayes Score 7.605106e-08
Marked as misclassified No
Message-id <1311553590.08.0.463284730319.issue12631@psf.upfronthosting.co.za>
In-reply-to
Content
4.6.4 Mutable Sequence Types

|  s.remove(x)  |  same as del s[s.index(x)]  |


>>> b = bytearray()
>>> b.extend(range(1, 6))
>>> b
bytearray(b'\x01\x02\x03\x04\x05')
>>> b.remove(2)
>>> del b[b.index(2)]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Type int doesn't support the buffer API
>>>
History
Date User Action Args
2011-07-25 00:26:30py.usersetrecipients: + py.user, docs@python
2011-07-25 00:26:30py.usersetmessageid: <1311553590.08.0.463284730319.issue12631@psf.upfronthosting.co.za>
2011-07-25 00:26:29py.userlinkissue12631 messages
2011-07-25 00:26:29py.usercreate