from __future__ import generators
Raymond Hettinger
othello at javanet.com
Sun Aug 12 22:31:54 EDT 2001
Yes, I prefer YIELD to be enabled without using: from __future__.
That technique ought to be saved for more dastardly (or
courageous) changes like the division operator.
-- Raymond
Guido van Rossum wrote:
> "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/)
More information about the Python-list
mailing list