from __future__ import generators
Clarence Gardner
clarence at netlojix.com
Sat Aug 11 17:33:41 EDT 2001
Guido van Rossum <guido at python.org> wrote in message news:<cpy9os91sp.fsf at cj20424-a.reston1.va.home.com>...
> "gzeljko" <gzeljko at sezampro.yu> writes:
>
> > I just installed 2.2a1 and immediately come to
> > 'natural question':
> >
> > Is 'from __future__ import generators' really
> > necessary ?
>
> If enough people prefer to always have the 'yield' keyword enabled, we
> can do that. I thought that there would be a huge opposition against
> breaking code this way, but maybe it's OK. At least 'yield' is not a
> silent break.
>
> --Guido van Rossum (home page: http://www.python.org/~guido/)
(Sorry about my previous blank followup; knews is an okay reader, but for
some reason it doesn't include the followup in its followups....)
While I'm sure I've never used 'yield' as an identifier, I would prefer
that the future_stmt protocol (which I think was a grand idea) not be
avoided on a case-by-case basis. And I'm a bit amazed that Guido would
suggest that, given his past reluctance to introduce new keywords.
More information about the Python-list
mailing list