Re: [C++-sig] Getting address of wrapped instance?

2008-12-09 Thread Paul Melis
Roman Yakovenko wrote: > On Mon, Dec 8, 2008 at 6:42 PM, Stefan Seefeld <[EMAIL PROTECTED]> wrote: > >> Hans Meine wrote: >> >>> How about adding an id() method (returning this) to the C++ class and >>> exporting that? >>> >>> >> Well, this 'id' isn't really a property of the wrapped

Re: [C++-sig] Custom from-python converter (almost working)

2008-12-09 Thread Paul Melis
Ralf W. Grosse-Kunstleve wrote: >> In SWIG it is possible to simply define an extra class method that takes a >> PyObject* and perform any conversion you want in that method (although >> this means having to add that extra method for all cases where the >> non-const pointer is used). Would somethin

Re: [C++-sig] Pickle an enum from c++

2008-12-09 Thread Ralf W. Grosse-Kunstleve
Indeed (I had forgotten this already...): r36256 | rwgk | 2006-12-03 12:43:48 -0800 (Sun, 03 Dec 2006) | 2 lines fixes to support pickling of enums (by Shashank Bapat) ---

Re: [C++-sig] Pickle an enum from c++

2008-12-09 Thread Hans Meine
On Monday 08 December 2008 20:02:41 Roman Yakovenko wrote: > 2008/12/8 Matthew Scouten (TT) <[EMAIL PROTECTED]>: > > From the lack of response I assume that no one has any clever ideas to > > make an enum pickleable. Thank you to anyone who put thought into this. > > > :-). > > I thought about wor