[issue8012] Revise generator-related Glossary entries

Georg Brandl report at bugs.python.org
Fri Apr 2 21:36:20 CEST 2010


Georg Brandl <georg at python.org> added the comment:

Well, the object returned is "just" an iterator (which happens to be implemented by a generator-iterator).  I wouldn't be so concerned about the repr() of the it.

If you look at the generator PEP, number 255, it says:

"""Note that when the intent is clear from context, the unqualified name
"generator" may be used to refer either to a generator-function or a 
generator-iterator."""

My experience is that most people use "generator" to mean the actual function.  The returned object is mostly called iterator.

----------

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


More information about the Python-bugs-list mailing list