I'm using yield
to process each element of a list. However, if the tuple only has a single string element, yield
returns the characters of the string, instead of the whole string:
self.commands = ("command1")
...
for command in self.commands:
yield command # returns 'c' not 'command1'
how can i fix this?
Thanks