SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 70 Python

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.
G
Guido van Rossum committed
ca5ed5b8753e71c15e1acbd753c4fd65cd3813a0
Parent: 86d593e