Cross platform /dev/null in Python
<p>I'm using the following code to hide stderr on Linux/OSX for a Python library I do not control that writes to stderr by default:</p>

<pre><code>f = open("/dev/null","w")
zookeeper.set_log_stream(f)
</code></pre>

<p>Is there an easy cross platform alternative to /dev/null?  Ideally it would not consume memory since this is a long running process.</p>
