450 Pound Library Program
bruno at modulix
onurb at xiludom.gro
Wed Feb 8 08:30:43 EST 2006
Magnus Lycka wrote:
> just a few style notes...
>
(snip)
>
> Why bother with L? The follwing is as clear I think, and solves
> the problem of commas in the title. Also, don't put a space between
> the callable and the parenthesis please. See the Python style guide,
> PEP 008.
>
> author, bookName = line.split(",", 2)
>>> "toto, tata, tutu".split(",", 2)
['toto', ' tata', ' tutu']
>>>
You want line.split(',', 1) here.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list