[spambayes-dev] RE: [Spambayes-checkins] spambayes/spambayes Corpus.py, 1.21, 1.22 FileCorpus.py, 1.18, 1.19

Tony Meyer tameyer at ihug.co.nz
Fri Mar 18 03:06:11 CET 2005


> future imports have to come first...

I thought that too, but if I run this script (with 2.2), it works:

"""
__author__ = "Tony Meyer"

from __future__ import generators

def a():
    yield 1

for b in a():
    print b
"""

Why is that?  Is it just an implementation quirk?

=Tony.Meyer



More information about the spambayes-dev mailing list