[issue45154] Enumerate() function or class?
Steven D'Aprano
report at bugs.python.org
Thu Sep 9 22:42:22 EDT 2021
Steven D'Aprano <steve+python at pearwood.info> added the comment:
Thank you Raymond for the explanation. I didn't realise that there was a technical reason why built-in generators had to be implemented as classes in CPython.
Sanmitha's question was already discussed answered here:
https://discuss.python.org/t/enumerate-function-or-class/10504/1
----------
nosy: +steven.daprano
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45154>
_______________________________________
More information about the Python-bugs-list
mailing list