What I’m trying to do is create a list of pure strings from a
cur.fetchall()
query.
I’ve read a few similar type answers on Stack and they don’t work. I know it’s only unicode and if you print the data it was print the str but I’m using this query to populate a wx.choice
i’ve used a list comprehension to append the str to a new list and that doesn’t work either. I’m also trying to take the string out of the tuple.
How do I get a pure string list
['one','two','three']
from a returned query
[(u'one'),(u'one'),(u'three)]
so i can use a wx.choice the way I’m sure it was meant to be used
So what we do is using the function
stron every element to get the desired result of['one','two','three'].