Package nltk_lite :: Package parse :: Module tree :: Class ImmutableTree
[hide private]
[frames] | no frames]

Class ImmutableTree

source code

object --+        
         |        
      list --+    
             |    
          Tree --+
                 |
                ImmutableTree
Known Subclasses:
ImmutableProbabilisticTree

Instance Methods [hide private]
 
__setitem__(self) source code
 
__setslice__(self)
x[i:j]=y
source code
 
__delitem__(self) source code
 
__delslice__(self)
del x[i:j]
source code
 
__iadd__(self)
x+=y
source code
 
__imul__(self)
x*=y
source code
 
append(self, v)
append object to end
source code
 
extend(self, v)
extend list by appending elements from the iterable
source code
 
pop(self, v=None)
remove and return item at index (default last)
source code
 
remove(self, v)
remove first occurrence of value
source code
 
reverse(self)
reverse *IN PLACE*
source code
 
sort(self)
stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1
source code
 
__hash__(self)
hash(x)
source code

Inherited from Tree: __add__, __cmp__, __eq__, __ge__, __getitem__, __gt__, __init__, __le__, __lt__, __mul__, __ne__, __radd__, __repr__, __rmul__, __str__, copy, draw, flatten, freeze, height, leaves, pp, pp_latex_qtree, pp_treebank, productions, subtrees, treepositions

Inherited from Tree (private): _frozen_class, _ppflat

Inherited from list: __contains__, __getattribute__, __getslice__, __iter__, __len__, __new__, __reversed__, count, index, insert

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]

Inherited from Tree: convert

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__setitem__(self)
(Index assignment operator)

source code 
Overrides: Tree.__setitem__

__setslice__(self)
(Slice assignment operator)

source code 

x[i:j]=y

Use of negative indices is not supported.

Overrides: list.__setslice__
(inherited documentation)

__delitem__(self)
(Index deletion operator)

source code 
Overrides: Tree.__delitem__

__delslice__(self)
(Slice deletion operator)

source code 

del x[i:j]

Use of negative indices is not supported.

Overrides: list.__delslice__
(inherited documentation)

__iadd__(self)

source code 

x+=y

Overrides: list.__iadd__
(inherited documentation)

__imul__(self)

source code 

x*=y

Overrides: list.__imul__
(inherited documentation)

append(self, v)

source code 

append object to end

Overrides: list.append
(inherited documentation)

extend(self, v)

source code 

extend list by appending elements from the iterable

Overrides: list.extend
(inherited documentation)

pop(self, v=None)

source code 

remove and return item at index (default last)

Returns:
item

Overrides: list.pop
(inherited documentation)

remove(self, v)

source code 

remove first occurrence of value

Overrides: list.remove
(inherited documentation)

reverse(self)

source code 

reverse *IN PLACE*

Overrides: list.reverse
(inherited documentation)

sort(self)

source code 

stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1

Overrides: list.sort
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: list.__hash__
(inherited documentation)