can't import generators
Gerhard Häring
gerhard.haering at gmx.de
Sun Jun 30 22:53:00 EDT 2002
John Hunter wrote in comp.lang.python:
>>>>>> "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.
There is no reason to set PYTHONPATH to the Python core libraries,
they are found automatically.
Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list
mailing list