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

Class NodeList

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' ]

Method Summary
  __getattr__(self, name)
  __nonzero__(self)
  __str__(self)
    Inherited from UserList
  __init__(self, initlist)
  __add__(self, other)
  __cmp__(self, other)
  __contains__(self, item)
  __delitem__(self, i)
  __delslice__(self, i, j)
  __eq__(self, other)
  __ge__(self, other)
  __getitem__(self, i)
  __getslice__(self, i, j)
  __gt__(self, other)
  __iadd__(self, other)
  __imul__(self, n)
  __le__(self, other)
  __len__(self)
  __lt__(self, other)
  __mul__(self, n)
  __ne__(self, other)
  __radd__(self, other)
  __repr__(self)
  __rmul__(self, n)
  __setitem__(self, i, item)
  __setslice__(self, i, j, other)
  append(self, item)
  count(self, item)
  extend(self, other)
  index(self, item, *args)
  insert(self, i, item)
  pop(self, i)
  remove(self, item)
  reverse(self)
  sort(self, *args, **kwds)

Generated by Epydoc 2.1 on Wed Dec 12 09:39:31 2007 http://epydoc.sf.net