sufficiently pythonic code for testing type of function

Bruno Desthuilliers onurb at xiludom.gro
Mon Oct 16 11:57:06 CEST 2006

Fredrik Lundh wrote:
> Scott David Daniels wrote:
>> Nope.  idempotent: f(f(x)) = f(x)
>> That is, after doing it once, repeating it won't hurt.
> </F>
Thank you (Scott and Fredrik) for the correction.

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