Alex Martelli wrote:
> Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
> ...
>
>>> This would allow things like:
>>> key = '',join( list(word.lower().strip()).sort() )
>>
>>key = ''.join(list(sorted(word.lower().strip()))
>
>
> No need to make yet another list here (also, I think each of you omitted
> a needed closed-paren!-)
Possibly
> -- you could just use:
>
> key = ''.join(sorted(word.lower().strip()))
Yes, of course - too quick answer, half-backed answer...
(snip)
--
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