Comment 5 for bug 399106

Revision history for this message
Gael Varoquaux (gael-varoquaux) wrote : Re: [Bug 399106] [NEW] from future import ...

On Tue, Jul 14, 2009 at 07:43:29PM -0000, Joe Coffey wrote:
> Thanks for your quick reply. However, this didn't fix it for me:

> Basically if I have a file tester.py of the form:

> from future import division, absolute_import

> print "hi"

Ha, OK. Sorry, I hadn't understood your problem.

Sorry, I cannot fix this: the problem is that you cannot do imports from
__future__ unless you are right at the entry point. In other word, you
have to comment out or to try/except these lines. I can't fix this, and
you won't be able to run these files in another program, say an IDE. It
is a limitation of Python.

Gaël