can't import generators

Aahz aahz at pythoncraft.com
Sat Jun 29 16:33:50 EDT 2002


In article <m2hejlc060.fsf at mother.paradise.lost>,
John Hunter  <jdhunter at nitace.bsd.uchicago.edu> wrote:
>
>I am having trouble working with generators.  Anyone know what might
>cause this behavior:
>
>Python 2.2.1 (#1, Apr 22 2002, 21:20:54) 
>[GCC 3.0.4] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>>>> from __future__ import generators
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>ImportError: cannot import name generators

Can't do this in interactive mode.  Use a script.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/



More information about the Python-list mailing list