Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Signal.WeakImmutablePairList Class Reference

Inherits Generic, T, U, and Iterable.

Public Member Functions

None __init__ (self)
 
"WeakImmutablePairList[T,U]" append (self, T left_item, U right_item)
 
"WeakImmutablePairList[T,U]" remove (self, T left_item, U right_item)
 
def __iter__ (self)
 

Detailed Description

A variation of WeakImmutableList which holds a pair of values using weak refernces.

Member Function Documentation

◆ append()

"WeakImmutablePairList[T,U]" UM.Signal.WeakImmutablePairList.append (   self,
left_item,
right_item 
)
Append an item and return a new list

:param item: the item to append
:return: a new list

◆ remove()

"WeakImmutablePairList[T,U]" UM.Signal.WeakImmutablePairList.remove (   self,
left_item,
right_item 
)
Remove an item and return a list

Note that unlike the normal Python list.remove() method, this ones
doesn't throw a ValueError if the item isn't in the list.
:param item: item to remove
:return: a list which does not have the item.

The documentation for this class was generated from the following file: