[IronPython] IronPython 2.0 Beta 3 issue importing from System.Environment

Dave Fugate dfugate at microsoft.com
Thu Jul 3 01:00:52 CEST 2008


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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Armes
Sent: Wednesday, July 02, 2008 1:36 PM
To: users at lists.ironpython.com
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080702/567aa119/attachment.html>


More information about the Ironpython-users mailing list