Re: Simple, elegant, pythonic solution for switch statement
python_only wrote:[color=blue]
> Check it out!
>
> Readable switch construction without lambdas or dictionaries:
>
> http://aspn.activestate.com/ASPN/Coo.../Recipe/410692
>[/color]
Not sure I'll have a need for it, but, yes, nice job !-)
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xiludom. gro'.split('@')])"
Comment