DefaultThreadDict
¶
digraph inheritance992dc03bf1 {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"DefaultThreadDict" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="a join venture between thread and default dict"];
"defaultdict_fromkey" -> "DefaultThreadDict" [arrowsize=0.5,style="setlinewidth(0.5)"];
"ThreadDict" -> "DefaultThreadDict" [arrowsize=0.5,style="setlinewidth(0.5)"];
"ThreadDict" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Thread safe dictionary with redefinable read/write methods and a"];
"defaultdict" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="defaultdict(default_factory[, ...]) --> dict with default factory"];
"defaultdict_fromkey" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="Creates a dictionary with a default_factory function that creates new elements using key as argument."];
"defaultdict" -> "defaultdict_fromkey" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
DefaultThreadDict
(other=None, default_factory=None, read_method=None, write_method=None, timewait=0.1, threaded=True)[source]¶ Bases:
taurus.core.util.containers.defaultdict_fromkey
,taurus.core.util.containers.ThreadDict
a join venture between thread and default dict This class merges the two previous ones. @todo This two classes are not yet well integrated … the way a new key is added to the dict must be rewritten explicitly.