Most viewed recipes by Joe VanAndel http://code.activestate.com/recipes/users/98144/views/2001-08-10T16:27:30-07:00ActiveState Code RecipesDebug dynamically loaded C extensions with gdb (Python)
2001-08-10T16:27:30-07:00Joe VanAndelhttp://code.activestate.com/recipes/users/98144/http://code.activestate.com/recipes/66510-debug-dynamically-loaded-c-extensions-with-gdb/
<p style="color: grey">
Python
recipe 66510
by <a href="/recipes/users/98144/">Joe VanAndel</a>
(<a href="/recipes/tags/extending/">extending</a>).
</p>
<p>If a dynamically loaded C/C++ extension is causing Python to core dump,
here's a technique to debug your extension using gdb.</p>
use modules generated with SWIG in a multi-thread environment (Python)
2001-03-21T15:43:24-08:00Joe VanAndelhttp://code.activestate.com/recipes/users/98144/http://code.activestate.com/recipes/52294-use-modules-generated-with-swig-in-a-multi-thread-/
<p style="color: grey">
Python
recipe 52294
by <a href="/recipes/users/98144/">Joe VanAndel</a>
(<a href="/recipes/tags/extending/">extending</a>).
</p>
<p>To use multiple threads, you must release the Python thread-lock.
The simplest way with SWIG is to use an except directive.For example,
Mark Hammond does the following in the Win32 extensions:</p>