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

Class NodeList

source code

       object --+                
                |                
    _abcoll.Sized --+            
                    |            
       object --+   |            
                |   |            
 _abcoll.Iterable --+            
                    |            
       object --+   |            
                |   |            
_abcoll.Container --+            
                    |            
     _abcoll.Sequence --+        
                        |        
  _abcoll.MutableSequence --+    
                            |    
            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' ]
Nested Classes [hide private]

Inherited from _abcoll.Sized: __metaclass__

Instance Methods [hide private]
 
__nonzero__(self) source code
 
__bool__(self) source code
 
__str__(self)
str(x)
source code
 
__iter__(self) source code
 
__call__(self, *args, **kwargs) source code
 
__getattr__(self, name) source code
 
__getitem__(self, index)
This comes for free on py2, but py3 slices of NodeList are returning a list breaking slicing nodelist and refering to properties and methods on contained object
source code

Inherited from UserList.UserList: __add__, __cmp__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getslice__, __gt__, __iadd__, __imul__, __init__, __le__, __len__, __lt__, __mul__, __ne__, __radd__, __repr__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from _abcoll.Sequence: __reversed__

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__

Class Methods [hide private]

Inherited from _abcoll.Sized: __subclasshook__

Class Variables [hide private]

Inherited from UserList.UserList: __abstractmethods__, __hash__

Inherited from UserList.UserList (private): _abc_negative_cache, _abc_negative_cache_version, _abc_registry

Inherited from _abcoll.Sized (private): _abc_cache

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__iter__(self)

source code 
Overrides: _abcoll.Iterable.__iter__

__getitem__(self, index)
(Indexing operator)

source code 
This comes for free on py2, but py3 slices of NodeList are returning a list breaking slicing nodelist and refering to properties and methods on contained object
Overrides: _abcoll.Sequence.__getitem__