On Jul 5, 10:28 am, Flo Ledermann <[email protected]> wrote: .. > What do you guys prefer?
I prefer an explicit if statement over the ternery operator in any language. > Did I overlook anything obvious? This is mainly because I prefer code to be clear at a glance to the maintainer. I view the and/or trick as being amongst the worst hackery. (ie looks clever, but bound to fail on an edge case when you least want it to) > Has this been discussed thousands of times? Naturally :-) Michael. -- To post: [email protected] To unsubscribe: [email protected] Feeds: http://groups.google.com/group/python-north-west/feeds More options: http://groups.google.com/group/python-north-west
