I have a list like this:
l = [{'username': u'bob', 'id': 2L, 'email': u'[email protected]'}, {'username': u'jane', 'id': 3L, 'email': u'[email protected]'}]
So I'm wondering what is the best way to remove the bob
object from the list?
I know how to use remove()
to eliminate an element, but not sure to eliminate a whole object.