Package ndg :: Package xacml :: Package utils :: Class UniqList
[hide private]

Class UniqList

source code

object --+    
         |    
      list --+
             |
            UniqList

Extended version of list type to enable a list with unique items. If an item is added that is already present then it is silently omitted from the list

Instance Methods [hide private]
 
extend(self, iter)
Extend a list with input iterable
source code
 
__iadd__(self, iter)
Extend a list with input iterable
source code
 
append(self, item)
Add an item to the list
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __imul__, __init__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

extend(self, iter)

source code 

Extend a list with input iterable

Parameters:
  • iter (iterable type) - iterable object
Overrides: list.extend

__iadd__(self, iter)

source code 

Extend a list with input iterable

Parameters:
  • iter (iterable type) - iterable object
Overrides: list.__iadd__

append(self, item)

source code 

Add an item to the list

Parameters:
  • item (any) - item to append to list
Overrides: list.append