What are some strategies to write python code that works in CPython, Jython and IronPython
<p>Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environment. Have you got a great way to handle this situation?</p>

<p>If you <em>do</em> find you need to write unique code for an environment, use pythons </p>

<pre><code>import mymodule_jython as mymodule

import mymodule_cpython as mymodule
</code></pre>

<p>have this stuff in a simple module (''module_importer''?) and write your code like this:</p>

<pre><code>from module_importer import mymodule
</code></pre>

<p>This way, all you need to do is alter <code>module_importer.py</code> per platform.</p>
