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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to