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#?
 
_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to