Seo Sanghyeon wrote:
2009/6/10 Michael Foord <[email protected]>:
All .NET classes used from IronPython have an __objclass__ attribute on
their methods / members. This is *really* useful for introspection - can I
rely on it staying or is it an implementation detail that may change?
Since this is also a CPython behavior (although undocumented, or poorly
documented one), it's unlikely to change. __objclass__ of a descriptor
points to its class.
C:\>python
Python 2.6.1
object.__repr__.__objclass__
<type 'object'>
Ah - didn't know that, and if google knew she hid it from me.
Thanks
Michael
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com