|
Boost : |
From: Petr Kocmid (pkocmid_at_[hidden])
Date: 2000-11-22 22:14:41
> 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.
Petr Kocmid
pkocmid_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk