Returns the value of the data field with the given name, or the given default value if the data field does not exist. Args: name (str): the dictionary key to return default (obj): a default value to return if the key does not exist Returns:
(self, name, default=None)
| 149 | self.data.update(kwargs) |
| 150 | |
| 151 | def get_data(self, name, default=None): |
| 152 | """Returns the value of the data field with the given name, or the given |
| 153 | default value if the data field does not exist. |
| 154 | |
| 155 | Args: |
| 156 | name (str): the dictionary key to return |
| 157 | default (obj): a default value to return if the key does not exist |
| 158 | |
| 159 | Returns: |
| 160 | the value of the key, or the default |
| 161 | """ |
| 162 | return self.data.get(name, default) |
| 163 | |
| 164 | def reset_branch(self, data): |
| 165 | """Removes all descendendants of this task and set this task to be runnable. |