[C++-sig] Trouble with custom container class

Roman Yakovenko roman.yakovenko at gmail.com
Sun May 17 07:32:59 CEST 2009

On Fri, May 15, 2009 at 12:01 AM, Philip Bloom <pbloom at crystald.com> wrote:
> Hello,


> I’m having some issues with retrieving objects from a custom container
> class.  The objects in the container are otherwise wrapped objects
> (PythonDTPNodeHandle *) that the python wrapper knows how to convert, but
> what I get back from the container with __getitem__ seems to not know how to
> convert it.    I suspect that I’m doing something wrong on what I’m feeding
> Py++ and thus the generated wrapping is bad, but I don’t see anything wrong
> with the final wrapping for getitem or operator[].  I’ve no idea why it
> wouldn’t be able to convert, for this specific usage.  Any advise/help would
> be well welcome.  I’ve included the whole wrapper at the bottom.

Too much information. Can you create stand-alone, small and complete
test case, that shows your problem?

Roman Yakovenko
C++ Python language binding

More information about the Cplusplus-sig mailing list