Message4520

Author doublep
Recipients doublep
Date 2009-04-16.13:25:44
SpamBayes Score 5.019616e-06
Marked as misclassified No
Message-id <1239888345.29.0.54396034956.issue1318@psf.upfronthosting.co.za>
In-reply-to
Content
When a file executed with PythonInterpreter.execfile (InputStream,
String) contains the following line at the top:

    from __future__ import with_statement

I get this error:

    ImportError: No module named __future__

If this is executed using the standalone JAR, it works fine.

Maybe there is some other way to enable "future" features when running
scripts this way (i.e. with PythonInterpreter), but then I couldn't find
those.
History
Date User Action Args
2009-04-16 13:25:45doublepsetrecipients: + doublep
2009-04-16 13:25:45doublepsetmessageid: <1239888345.29.0.54396034956.issue1318@psf.upfronthosting.co.za>
2009-04-16 13:25:45doubleplinkissue1318 messages
2009-04-16 13:25:44doublepcreate