generator/coroutine terminology

Rustom Mody rustompmody at gmail.com
Mon Mar 16 23:33:45 EDT 2015


On Tuesday, March 17, 2015 at 8:55:27 AM UTC+5:30, Mark Lawrence wrote:
> On 17/03/2015 03:18, Rustom Mody wrote:
> > On Tuesday, March 17, 2015 at 8:37:25 AM UTC+5:30, Mark Lawrence wrote:
> >>>
> >>> Ok Let me throw out a suggestion:
> >>>    - potato is a generator
> >>>    - tomato is a cursor.
> >>> Acceptable?
> >>>
> >>
> >> No.  In Python potato is a generator function, tomato is a generator.
> >> Why complicate something that is so simple?  I couldn't care less what
> >> they are called in any other language.
> >
> > Ok so lets see...
> > https://docs.python.org/3.4/tutorial/classes.html#generators
> > https://docs.python.org/3.4/glossary.html#term-generator
> >
> > Are these consistent with (your notion of) python?
> > Maybe they are "any other language"?
> >
> 
> I'll already suggested you write the patches and put them on the bug 
> tracker.  If you can't be bothered please have the courtesy to stop 
> bleating about it.

Here are two of your posts (within a couple of hours)

1. 
> So the docs are confused and inconsistent but in an open source
> community it's not *MY* responsibility to deal with it, somebody else can.
> Making mountains out of mole hills is all I see in this entire thread. 

2. 
> No.  In Python potato is a generator function, tomato is a generator.
> Why complicate something that is so simple?  I couldn't care less what
> they are called in any other language. 

I understand the first as saying: "Since something is wrong correct it; Dont bleat!"

The second is saying "Nothing is wrong!"

Please decide which side you belong



More information about the Python-list mailing list