]> granicus.if.org Git - python/commit
Remove the next() method -- one is supplied automatically by
authorGuido van Rossum <guido@python.org>
Tue, 16 Jul 2002 21:02:42 +0000 (21:02 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 16 Jul 2002 21:02:42 +0000 (21:02 +0000)
commitca5ed5b8753e71c15e1acbd753c4fd65cd3813a0
treefba1c9406bece420751c24d73a7582f7d25a6029
parent86d593e110f61800069b2d488d5530477a3d8054
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.
Objects/enumobject.c