[IronPython] IronPython 0.7.6 released

Martin Maly martmaly at exchange.microsoft.com
Wed Jun 15 06:52:45 CEST 2005


They are implemented as members. Since the __doc__ behaves like any other member,
The implementation just uses the member semantics. Consider for example:

>>> class c:
...     "doc 1"
...     print __doc__
...     __doc__ = "doc 2"
...     print __doc__
...
doc 1
doc 2
>>>

I hope this answers your question.

Martin

> Keith J. Farmer Wrote:
> 
> Out of curiosity, how are __doc__ strings being compiled?
> As a member, or perhaps as an attribute in the same vein as XML comments in C#?
 



More information about the Ironpython-users mailing list