change an element of a list
onurb at xiludom.gro
Thu Sep 15 13:30:42 CEST 2005
Dirk Hagemann wrote:
> THANKS! That works :-)
Of course it works. Why wouldn'it it work ?-)
> But meanwhile I found another solution that works in my case. Out of
> this list of tuples I generated a SQL-Statement which is a simple
> string. Then I simply checked this string for 'None'. May be too
Nope, why ? If you need to turn this list into a string anyway, doing a
replace on the string is of course the simplest and most obvious solution.
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