Hi Gustavo,
Hmm. OK, if I read that page correctly what I would need in order to
emulate a python sequence, mapping, or number is the ability to
register PySequenceMethods, PyMappingMethods, or PyNumberMethods
then? Maybe I'll dig around in the code and see if this is difficult
to add.
2009/6/5 J. Michael Owen
> Hi Taner,
> Thanks for the suggestion! I actually was trying the same solution, except
> I wasn't sure how to handle the iterators. I'll try it out as you do in
> your example -- are you able to iterate over the vector in python the usual
> way? As in "for x in vec:"
2009/6/5 Taner Yildirim
> Dear Mike,
>
>
>
> Concerning your question about add_method for stl_vector, I was able to add
>
>
> almost all standard methods of std_vector by simply wrapping the
> std::vector without
>
> even using the mod.add_container!! Since I am very new to pybindgen,
>
> I am
Hi Taner,
Thanks for the suggestion! I actually was trying the same solution,
except I wasn't sure how to handle the iterators. I'll try it out as
you do in your example -- are you able to iterate over the vector in
python the usual way? As in "for x in vec:"?
Two curious things I note