Beat me to it by 3 or 4 seconds, got you email while reaching for "send"
ha :) 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dino Viehland
Sent: Friday, June 30, 2006 9:49 AM
To: Discussion of IronPython
Subject: Re: [IronPython] .NET Attribute None

You could use getattr / setattr to access this off the type:

getattr(enumType, 'None')

(we do have a bug on this but currently it's marked as low priority so
we may or may not get to fixing this for 1.0).

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord
Sent: Friday, June 30, 2006 9:37 AM
To: Discussion of IronPython
Subject: [IronPython] .NET Attribute None

Hello all,

We are using some third party .NET classes. One of these defines an
enumeration with various members, one of which is "None".

In CPython "object.None" would not be a valid identifier, however in
IronPython this works fine. Believe me, we don't want you to fix this.
:-)

However, if this did become invalid how would we access the property ?

All the best,

Michael Foord
http://www.resolversystems.com
http://www.voidspace.org.uk/python/index.shtml
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to