[IronPython] [Bug] import System enables .NET methods

Luis M. Gonzalez luismgz at gmail.com
Sat Jul 28 20:28:13 CEST 2007


Hi there,

This is strange, but this one is weird:

>>> 'hello world'.Upper()
'HELLO WORLD'

Luis

----- Original Message ----- 
From: "Michael Foord" <fuzzyman at voidspace.org.uk>
To: "Discussion of IronPython" <users at lists.ironpython.com>
Sent: Saturday, July 28, 2007 10:06 AM
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