from __future__ import generators
David Bolen
db3l at fitlinxx.com
Fri Aug 10 17:11:35 EDT 2001
Guido van Rossum <guido at python.org> writes:
> "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.
No, but you'd lose the window of time during which code continued to
run but with a warning. In terms of any transition I'd still favor
having that time period.
(I'll play a little devil's advocate though and say that I haven't
found any use of a variable name yield in some quick greps through the
majority of my local code)
--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l at fitlinxx.com /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/
More information about the Python-list
mailing list