Delete a named attribute on each element of the list.
fl.delattr(attr) is equivalent to for f in fl: del f.attr.
Parameters : |
|
---|---|
Returns : | None |
Examples
>>> fl.getattr('foo')
['bar1', 'bar2']
>>> fl.delattr('foo')
>>> fl.getattr('foo', None)
[None, None]