(func if x else otherfunc)(*args)

This is a nice tip, I can remove a lot of if's using this.

Thanks for sharing.

http://zerp.ly/rochacbruno
Em 20/05/2012 11:48, "Massimo Di Pierro" <[email protected]>
escreveu:

> http://satyajit.ranjeev.in/2012/05/17/python-a-few-things-to-remember.html
>

Reply via email to