[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner added the comment: Fair enough, Georg. Case closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread Georg Brandl
Georg Brandl 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

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner added the comment: Georg, your change (r79587) makes this the main definition: generator A function which returns an iterator. I'm concerned that this definition does not fit well with the occurrence of "generator object" in the following: Python 2.6.5 (r265:79096, Mar

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread Georg Brandl
Georg Brandl added the comment: I think this patch is not correct: a "generator" really is the same as "generator function". Both generators and genexps return an iterator; I've fixed that in r79587. -- resolution: -> fixed status: open -> closed ___