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.
> 
> http://en.wikipedia.org/wiki/Idempotence_%28computer_science%29
> 
> </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