from __future__ import generators

gzeljko gzeljko at sezampro.yu
Thu Aug 9 00:44:13 CEST 2001


From: Steven D. Majewski <sdm7g at Virginia.EDU>
> On Thu, 9 Aug 2001, gzeljko wrote:
> > Is 'from __future__ import generators' really
> > necessary ?
> 
> Only if you want to use generators. 
> Iterators work without "from __future__ ..." 
> but yield is just a normal id to the grammar instead of a keyword
> without it. 
>

Yes I know, but ...

Is 1 'yield' worth 100000 'from __future__ import generators' ? :)

gzeljko
 
> -- Steve Majewski
> 
> 
> 






More information about the Python-list mailing list