[issue22725] improve documentation for enumerate() (built-in function)

Tshepang Lekhonkhobe report at bugs.python.org
Tue Nov 4 05:56:17 CET 2014


Tshepang Lekhonkhobe added the comment:

@raymond

Why do you say that 'sequence' is a keyword?

>>> enumerate()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Required argument 'sequence' (pos 1) not found

That means that 'sequence' can be changed to 'iterable' without worrying about backwards compatibility.

----------
nosy: +tshepang

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22725>
_______________________________________


More information about the Python-bugs-list mailing list