SCons.Util.NodeList

SCons :: Util :: NodeList :: Class NodeList |
[hide private]
[frames] | no frames]

# Class NodeList

source code

    UserList.UserList --+
                        |
                       NodeList

This class is almost exactly like a regular list of Nodes (actually it can hold any object), with one important difference. If you try to get an attribute from this list, it will return that attribute from every item in the list. For example:

    >>> someList = NodeList([ '  foo  ', '  bar  ' ])
    >>> someList.strip()
    [ 'foo', 'bar' ]

Instance Methods | [hide private]
__nonzero__(self) | source code
__str__(self) | source code
__getattr__(self, name) | source code
Inherited from `UserList.UserList`: `__add__`, `__cmp__`, `__contains__`, `__delitem__`, `__delslice__`, `__eq__`, `__ge__`, `__getitem__`, `__getslice__`, `__gt__`, `__iadd__`, `__imul__`, `__init__`, `__le__`, `__len__`, `__lt__`, `__mul__`, `__ne__`, `__radd__`, `__repr__`, `__rmul__`, `__setitem__`, `__setslice__`, `append`, `count`, `extend`, `index`, `insert`, `pop`, `remove`, `reverse`, `sort`