[IronPython] type.__call__ again
Dino Viehland
dinov at exchange.microsoft.com
Wed Jan 24 17:55:20 CET 2007
Thanks for the bug report Seo. I've opened CodePlex bug #7594 (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=7594).
It looks like the problem is that our type.__call__ is actually the type object it's self, CPython has a slot wrapper for __call__:
>>> type.__call__
<type 'type'>
CPython has a slot wrapper for this:
>>> type.__call__
<slot wrapper '__call__' of 'type' objects>
We probably need to publish our own slot wrapper to make this work.
-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Tuesday, January 23, 2007 3:49 AM
To: Discussion of IronPython
Subject: [IronPython] type.__call__ again
CPython
>>> type.__call__(object)
<object object at ...>
IronPython
>>> type.__call__(object)
<type 'type'>
Something's wrong...
--
Seo Sanghyeon
_______________________________________________
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