[IronPython] __future__ is a little too magic for its own good

Jonathan Jacobs korpse-ironpython at kaydash.za.net
Wed Jul 26 10:44:03 CEST 2006


IronPython 1.0.60725 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
 >>> with
Traceback (most recent call last):
   File , line 0, in <stdin>##3
NameError: name 'with' not defined
 >>> from __future__ import with_statement
Traceback (most recent call last):
   File , line 0, in <stdin>##4
   File , line 0, in __import__##8
ImportError: No module named __future__
 >>> with
Traceback (most recent call last):
SyntaxError: unexpected token <eof> (<stdin>, line 1)

This appears to happen with every other __future__ import I tried.

P.S. Icons! Wheeeeee!!!
-- 
Jonathan



More information about the Ironpython-users mailing list