[C++-sig] Re: C arrays solution

Niall Douglas s_sourceforge at nedprod.com
Wed Oct 15 19:38:49 CEST 2003

On 15 Oct 2003 at 11:38, David Abrahams wrote:

> >>>The key here is that MyList knows nothing of python and offers no
> >>>more than a C array of pointers, something which up until now was
> >>>hard to wrap without lots of munge code.
> >>
> >>I'm not sure what "munge code" means.  The behavior you show above
> >>is almost trivial to achieve using Boost.Python, without anything I
> >>consider to be "munge code".
> > 
> > I'm getting that picture from Raoul. However if it's so easy, why is
> > Raoul developing indexing_suite?
> To handle reference and lifetime issues which are mostly not relevant
> to you because your container holds strings, which are immutable in
> Python.


Whatever gave you the idea my container holds strings? That was my 
*test* container and I chose strings because BPL already provides 
conversion to python types.

The real actual world use is for arbitrary bespoke containers 
returning arbitrary objects sometimes by value and sometimes by 

I did state that the code I posted was proof of concept many times!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 208 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20031015/0257f800/attachment.pgp>

More information about the Cplusplus-sig mailing list