from __future__ import generators
Steven D. Majewski
sdm7g at Virginia.EDU
Wed Aug 8 18:17:54 EDT 2001
On Thu, 9 Aug 2001, gzeljko wrote:
> Hi,
>
> I just installed 2.2a1 and immediately come to
> 'natural question':
>
> 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.
-- Steve Majewski
More information about the Python-list
mailing list