[IronPython] [Bug] import System enables .NET methods
Dino Viehland
dinov at exchange.microsoft.com
Sun Jul 29 19:54:07 CEST 2007
I think this one is by design. The idea is if you import any .NET namespace you're interested in the .NET world and so .NET methods are enabled.
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Saturday, July 28, 2007 6:06 AM
To: Discussion of IronPython
Subject: [IronPython] [Bug] import System enables .NET methods
Hello all,
My understanding was that 'import clr' in a module was supposed to
enable .NET methods.
'import System' also has the same effect. Try the following (either from
an interactive session or run as a program) in IronPython 1.1.
import System
print 'hello'.ToUpper()
All the best,
Michael Foord
_______________________________________________
Users mailing list
Users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list