I'm trying to find the most pythonic way to split a string like
"some words in a string"
into single words. string.split(' ')
works ok but it returns a bunch of white space entries in the list. Of course i could iterate the list and remove the white spaces but I was wondering if there was a better way?