change an element of a list

bruno modulix 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
> easy...

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.

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