[IronPython] clrtype: How to subclass ClrClass?
Shri Borde
Shri.Borde at microsoft.com
Thu Feb 18 20:50:33 CET 2010
Sorry, I have not, and unfortunately will not be able to get to it until next week. Please vote on http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26249 if you want to see it fixed in 2.6.1. Depending on the fix, it might have to wait until after 2.6.1
From: Lukas Cenovsky [mailto:cenovsky at bakalari.cz]
Sent: Thursday, February 18, 2010 5:29 AM
To: Shri Borde
Subject: Re: [IronPython] clrtype: How to subclass ClrClass?
Hello Shri,
have you had chance to look at this bug?
--
-- Lukáš
Shri Borde wrote:
It is a know bug. I can take a look next week.
-----Original Message-----
From: users-bounces at lists.ironpython.com<mailto:users-bounces at lists.ironpython.com> [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
Sent: Saturday, February 06, 2010 4:10 AM
To: Discussion of IronPython
Subject: Re: [IronPython] clrtype: How to subclass ClrClass?
On 06/02/2010 11:19, Lukas Cenovsky wrote:
Hi all,
it looks like I cannot subclass a class based on ClrClass metaclass:
IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.4927
Type "help", "copyright", "credits" or "license" for more information.
import clr
import clrtype
class Product(object):
... __metaclass__ = clrtype.ClrClass
...
p = Product()
print "CLR type name: %s" % p.GetType().FullName
CLR type name: Product
class MyProduct(Product):
... pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: The given key was not present in the dictionary.
Is it a bug or am I doing something wrong? Thanks.
Hehe, I ran into this a couple of days ago on Silverlight as well.
All the best,
Michael
--
-- Lukáš
_______________________________________________
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100218/d8df972e/attachment.html>
More information about the Ironpython-users
mailing list