[IronPython] __objclass__
Seo Sanghyeon
sanxiyn at gmail.com
Wed Jun 10 04:34:21 CEST 2009
2009/6/10 Michael Foord <fuzzyman at voidspace.org.uk>:
> 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'>
--
Seo Sanghyeon
More information about the Ironpython-users
mailing list