can't import generators

John Hunter jdhunter at nitace.bsd.uchicago.edu
Sun Jun 30 10:18:56 EDT 2002


>>>>> "Tim" == Tim Peters <tim.one at comcast.net> writes:

    Tim> Start Python with the -v switch to see how imports are
    Tim> getting resolved.  __future__.py is an actual module that
    Tim> actually gets imported.  If you're picking up a wrong version
    Tim> of the Python libraries, that would explain it (maybe due to
    Tim> a bad PYTHONPATH setting, or some local module named
    Tim> __future__.{py,pyc,pyo}).

Bingo -- thanks.  Old musty, crusty PYTHONPATH setting was the
culprit.

JDH



More information about the Python-list mailing list