This is most definitely a bug (should be able to import static variables from .NET types) and thanks for spotting this Michael! Filed as CodePlex 17236.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Armes Sent: Wednesday, July 02, 2008 1:36 PM To: [email protected] Subject: [IronPython] IronPython 2.0 Beta 3 issue importing from System.Environment Hello, I've recently started using Beta 3 and discovered the following issue: Microsoft Windows [Version 6.0.6001] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Users\miarme>ipy IronPython 2.0 Beta (2.0.0.3000) on .NET 2.0.50727.1434 Copyright (c) Microsoft Corporation. All rights reserved. >>> from System.Environment import * Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'NestedTypeTracker' object has no attribute 'get_CommandLine' >>> from System.Environment import get_CommandLine Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: Cannot import name get_CommandLine >>> Is this a known or expected issue? Thanks, Michael
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
