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 '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list