language design question
Bruno Desthuilliers
onurb at xiludom.gro
Mon Jul 10 04:47:40 EDT 2006
Alex Martelli wrote:
> Bruno Desthuilliers <bdesth.quelquechose at free.quelquepart.fr> 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 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list