[Tutor] problem with building dict w/ SQlite SELECTS in loop
Tim Golden
mail at timgolden.me.uk
Tue Sep 16 22:53:41 CEST 2008
Che M wrote:
[... snip solution around mis-handling a
string split ...]
Glad you solved it. Thanks for coming back with
an update. Depending on your circs, you might want
to try a more general solution to that problem, like:
<code>
s = "This, is,a, string, with, varying, amounts, of,space"
print [s.strip () for s in s.split (",")]
</code>
TJG
More information about the Tutor
mailing list