|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2000-11-23 10:59:25
----- Original Message -----
From: "Petr Kocmid" <pkocmid_at_[hidden]>
> > Don't expose iterators. Python has its own iteration idioms (e.g.
> > "for x in
> > S"), so just support the python sequence interface on your vector. Since
> > your vector is a random-access container, this will be fast. I
reccommend
> > this approach.
>
> I predict the problem Anton had will arise many times in the future.
Perhaps
> we can
> add some generic conversion of STL containers to sequence/mapping protocol
> to py_cpp.
I'm all ears. Any code contributions you can come up with which actually
work would certainly be appreciated.
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk