¡@

Home 

python Programming Glossary: tp_iternext

Python iterators ??how to dynamically assign self.next within a new style class?

http://stackoverflow.com/questions/1152238/python-iterators-how-to-dynamically-assign-self-next-within-a-new-style-class

it seems like an object's next method is being cached in tp_iternext http docs.python.org c api typeobj.html#tp_iternext and then.. in tp_iternext http docs.python.org c api typeobj.html#tp_iternext and then it's not updated when the class is changed. This is..

How to create a generator/iterator with the Python C API?

http://stackoverflow.com/questions/1815812/how-to-create-a-generator-iterator-with-the-python-c-api

0 tp_richcompare 0 tp_weaklistoffset 0 tp_iter 0 tp_iternext 0 tp_methods Sequence_members tp_members 0 tp_getset 0 tp_base.. 0 tp_richcompare 0 tp_weaklistoffset 0 tp_iter 0 tp_iternext 0 tp_methods 0 tp_members 0 tp_getset 0 tp_base 0 tp_dict.. 0 tp_richcompare 0 tp_weaklistoffset 0 tp_iter 0 tp_iternext 0 tp_methods Sequence_members tp_members 0 tp_getset 0 tp_base..