t = Task(tw, description="random task")
t.save()
set(t)
will result to infinite cycles since Task object is iterable (since it defines getitem). Given the implementation of getitem, we never run out of possible keys to try.
We should probably limit getitem to a list of specific keywords. It would also help to remove the ambiguity with the keyword usage (which is inherited from Taskwarrior itself):
t = Task(tw, description="random task")
t = Task(tw, descriptio="random task")
t = Task(tw, descripti="random task")
t = Task(tw, desc="random task")
Right now, doing something as simple as:
will result to infinite cycles since Task object is iterable (since it defines getitem). Given the implementation of getitem, we never run out of possible keys to try.
We should probably limit getitem to a list of specific keywords. It would also help to remove the ambiguity with the keyword usage (which is inherited from Taskwarrior itself):
All of the above produce the same result.