[IronPython] Bug in Alpha4 with __class__.__name__ ?
Dave Fugate
dfugate at microsoft.com
Wed Oct 3 00:28:22 CEST 2007
Thanks for the report Davy. Looks like it's been fixed with some recent changes in the last month (see below), but I'll be sure to add a test against this.
E:\ >ipy
IronPython console: IronPython 2.0 (2.0.0.00) on .NET 2.0.50727.1416
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference("System.Windows.Forms")
>>> from System.Windows.Forms import *
>>> control = TextBox()
>>> print control.__class__.__name__
TextBox
>>>
Dave
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Davy Mitchell
Sent: Tuesday, October 02, 2007 3:17 PM
To: Discussion of IronPython
Subject: [IronPython] Bug in Alpha4 with __class__.__name__ ?
IronPython console: IronPython 2.0A4 (2.0.10904.02) on .NET 2.0.50727.31
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference("System.Windows.Forms")
>>> from System.Windows.Forms import *
>>> control = TextBox()
>>> print control.__class__.__name__
Traceback (most recent call last):
File , line 0, in ##19
File , line 0, in _stub_##21
AttributeError: 'DynamicTypeTypeSlot' object has no attribute '__name__'
IronPython console: IronPython 2.0A3 (2.0.10724.00) on .NET 2.0.50727.312
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import clr
>>> clr.AddReference("System.Windows.Forms")
>>> from System.Windows.Forms import *
>>> control = TextBox()
>>> print control.__class__.__name__
TextBox
Cheers,
Davy
--
Davy Mitchell
Blog - http://www.latedecember.co.uk/sites/personal/davy/
Twitter - http://twitter.com/daftspaniel
Skype - daftspaniel
needgod.com
_______________________________________________
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