File to dict

mrkafk at gmail.com mrkafk at gmail.com
Fri Dec 7 08:55:39 EST 2007


> >>> def shelper(line):
> ...     return x.replace(' ','').strip('\n').split(':',1)

Argh, typo, should be def shelper(x) of course.





More information about the Python-list mailing list