Meta: PEP discussion (was Re: PEP 255: Simple Generators)
Robin Becker
robin at jessikat.fsnet.co.uk
Wed Jun 27 04:04:05 EDT 2001
More information about the Python-list mailing list
Wed Jun 27 04:04:05 EDT 2001
- Previous message (by thread): Meta: PEP discussion (was Re: PEP 255: Simple Generators)
- Next message (by thread): Meta: PEP discussion (was Re: PEP 255: Simple Generators)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <mailman.993614980.9175.python-list at python.org>, Tim Peters <tim.one at home.com> writes >[Tim] >> We didn't *have* to expose Python's generator-iterator object >> either > >[Greg Ewing] >> Out of curiosity, what would a Python generator implementation >> look like that didn't expose generator-iterators? What would >> happen if you called a generator outside of a for-loop >> context? > >The implementation would probably be almost exactly the same, but the >*visible* behavior would probably look like either Icon or, less likely, >CLU. ... it would have been so much nicer and easier if these generator functions could be generalised to be resumable then all the nonsense about where and when they could be used would vanish. This seems to be too late now. -- Robin Becker
- Previous message (by thread): Meta: PEP discussion (was Re: PEP 255: Simple Generators)
- Next message (by thread): Meta: PEP discussion (was Re: PEP 255: Simple Generators)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list