[IronPython] Bug in Alpha4 with __class__.__name__ ?

Davy Mitchell daftspaniel at gmail.com
Wed Oct 3 00:17:29 CEST 2007


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



More information about the Ironpython-users mailing list