diveintomark/diveintopython3 — Issue #3: Native datatypes: removing items from a list
Author: tini
Created: 2012-01-27 11:38:39+00:00
State: open

In chapter "2.4.5 Removing Items From A List" you could mention the fact that `remove()` only removes one occurrence:

```
>>> a_list = ['a', 'new', 'mpilgrim', 'new']
>>> a_list.remove('new')
>>> a_list
['a', 'mpilgrim', 'new']
>>> a_list.remove('new')
>>> a_list
['a', 'mpilgrim']
```

This happens at least in Python 2.x. I don't know if this changed in Python 3.