On Friday, March 13, 2015 at 5:36:35 PM UTC+8, Marko Rauhamaa wrote:
> Rustom Mody <rustompm...@gmail.com>:
> 
> > Nice demo of the same confusing terminology we are talking about.
> 
> Why don't you just stick with the terminology of the language
> specification? I think your students are going to be more confused if
> you try to come up with something better.
> 
> > When I say "expect generators to close" I mean 'generator-instances'
> > ie at runtime
> >
> > When you say "expect both to close with return" you are talking of
> > program-texts ie the 'factory'
> >
> > [Or I am guilty of the same I am accusing python of]
> 
> Your 'factory' is a:
> 
>     generator
>         A function which returns an iterator.
>     <URL: https://docs.python.org/3/glossary.html>
> 
> Your 'generator-instance' is an:
> 
>     iterator
>         An object representing a stream of data.
>     <URL: https://docs.python.org/3/glossary.html>
> 
> I don't think you should read much into what str(obj) returns. It's not
> much more than a random printable some CPython coder has cooked up in
> the heat of the moment.
> 
> 
> Marko

Well, the functional that returns a function instance which can be used
as an interator  is also a function. 

Well, some might use terms in generics programming as described in the book by 
Gangs of 4. 

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to