i'm trying to do something pretty simple:
line = "name : bob"
k, v = line.lower().split(':')
k = k.strip()
v = v.strip()
is there a way to combine this into one line somehow? i found myself writing this over and over again when making parsers, and sometimes this involves way more than just two variables.
i know i can use regexp, but this is simple enough to not really have to require it...