A dictionary.
Remove specified key and return the corresponding value.
If key is not found, default is returned if given, otherwise KeyError is raised.
A list.
Remove occurences of value from the list.
Parameter: | count – Number of matching values to remove. Default is to remove a single value. |
---|
FIFO Queue.
Return True if the queue is full, False otherwise (not reliable!).
Only applicable if maxsize is set.
Remove and return an item from the queue.
If optional args block is True and timeout is None (the default), block if necessary until an item is available. If timeout is a positive number, it blocks at most timeout seconds and raises the Queue.Empty exception if no item was available within that time. Otherwise (block is False), return an item if one is immediately available, else raise the Queue.Empty exception (timeout is ignored in that case).
Remove and return an item from the queue without blocking.
Raises Queue.Empty: | |
---|---|
if an item is not immediately available. |
A set.
Add element to set.
This has no effect if the member is already present.
Return the difference of two or more sets as a new set.
(i.e. all elements that are in this set but not the others.)
Return the intersection of two sets as a new set.
(i.e. all elements that are in both sets.)
Remove and return an arbitrary set element.
Raises KeyError: | |
---|---|
if the set is empty. |
Remove element from set; it must be a member.
Raises KeyError: | |
---|---|
if the element is not a member. |
Return the union of sets as a new set.
(i.e. all elements that are in either set.)
A sorted set.
Parameter: | initial – Initial data to populate the set with, must be an iterable of (element, score) tuples. |
---|