Comparison with False - something I don't understand

Aahz aahz at pythoncraft.com
Fri Dec 3 16:41:58 EST 2010


In article <mailman.187.1291397553.2649.python-list at python.org>,
Harishankar  <v.harishankar at gmail.com> wrote:
>On Thu, 02 Dec 2010 17:33:47 -0800, Aahz wrote:
>>
>> Please demonstrate that using ``if`` blocks for True/False is impler and
>> cleaner than using ``try`` blocks to handle exceptions.
>
>It is my personal preference and coding style for certain situations I 
>encounter in my own programs and not something that I could prove to 
>anybody else by theory.

Note carefully that I said "demonstrate", not "prove".  If using ``if``
is so clearly better in some situations, you should be able to provide an
example.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Think of it as evolution in action."  --Tony Rand



More information about the Python-list mailing list