>> d = dict(line.split(',').rstrip('\n')?
>
> Thanks. That worked except for the rstrip. So I did this:
Sorry...I got the order wrong on them (that's what I get for
editing after copy&pasting). They should be swapped:
d = dict(line.rstrip('\n').split(','))
to strip off the newline before you split it.
-tkc
--
http://mail.python.org/mailman/listinfo/python-list
