[C++-sig] Boost.python generators

John Reid j.reid at mail.cryst.bbk.ac.uk
Mon Jan 8 19:25:50 CET 2007

Stefan Seefeld wrote:
> Can't you just 'manually' bind your own methods to "next" and "__iter__" ?
> What else would you expect ?

I don't know. That's why I asked. I came to the same conclusion anyway. 
I thought there might be something in the python C api that was the 
preferred way to do this. Something that avoided throwing a 
StopIteration to end the iteration perhaps. I guess that's the pythonic 
way of doing it though.


More information about the Cplusplus-sig mailing list