"or die()" in Python
<p>Is anyone using anything like this in Python:</p>

<pre><code>def die(error_message):
    raise Exception(error_message)

...

check_something() or die('Incorrect data')
</code></pre>

<p>I think this kind of style is used in PHP and Perl.</p>

<p>Do you find any (dis)advantages in this [style]?</p>
