title: How to make my SWIG extension module work with Pickle?
body: <p>I have an extension module for Python that uses SWIG as a wrapper and I try to serialize it with Pickle and I fail =)</p>
  
  <ol>
  <li>If anyone has a source of SWIG extension that can be pickled, would love to see it!</li>
  <li>It seems like I should implement <a href="http://docs.python.org/library/pickle.html#pickling-and-unpickling-extension-types" rel="noreferrer"><code>__reduce_ex__</code></a> method in my C++ code. Does anyone have example of <code>__reduce_ex__</code>? <a href="https://stackoverflow.com/questions/5996010/pickling-a-python-extension-type-defined-as-a-c-struct-having-pyobject-members">There is similar Stackoverflow question</a> but it omits <code>manager_constructor</code> specification and implementation.</li>
  </ol>