conditional evaluation of source file in python
<p>Say I have a file that's only used in pre-production code</p>

<p>I want to ensure it gets not run in production code- any calls out to it have to fail.</p>

<p>This snippet at the top of the file doesn't work - it breaks the Python grammar, which specifies that <code>return</code> must take place in a function.</p>

<pre><code>if not __debug__:
   return None
</code></pre>

<p>What is the best solution here - the one that doesn't involve making a gigantic else, that is. :-)</p>
