commit | ca5ed5b8753e71c15e1acbd753c4fd65cd3813a0 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Jul 16 21:02:42 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Jul 16 21:02:42 2002 +0000 |
tree | fba1c9406bece420751c24d73a7582f7d25a6029 | |
parent | 86d593e110f61800069b2d488d5530477a3d8054 [diff] |
Remove the next() method -- one is supplied automatically by PyType_Ready() because the tp_iternext slot is set (fortunately, because using the tp_iternext implementation for the the next() implementation is buggy). Also changed the allocation order in enum_next() so that the underlying iterator is only moved ahead when we have successfully allocated the result tuple and index.