[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-08-01 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12631
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-27 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Duplicate of issue 12170.

--
nosy: +petri.lehtinen
superseder:  - index() and count() methods of bytes and bytearray should 
accept byte ints

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12631
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-24 Thread py.user

New submission from py.user port...@yandex.ru:

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


--
assignee: docs@python
components: Documentation, Interpreter Core
messages: 141066
nosy: docs@python, py.user
priority: normal
severity: normal
status: open
title: Mutable Sequence Type in .remove() is consistent only with lists, but 
not with bytearrays
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12631
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-24 Thread py.user

Changes by py.user port...@yandex.ru:


--
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12631
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com