What is throwing when you're trying to get __doc__ from it?  In general all 
methods and types should have __doc__ strings.    The methods should include 
all the possible overloads in the doc string.  The types currently will 
generally only have 'no documentation available'.

But one possibility to avoid the exception at least is:

def getDoc(obj):
        if hasattr(obj, '__doc__'):
                return getattr(obj, '__doc__')
        return None

which at least avoids the exception.


Unfortunately there isn't a really good, easy to access, alternate source for 
the documentation right now.


Do you want to help develop Dynamic languages on CLR? 
(http://members.microsoft.com/careers/search/details.aspx?JobID=6D4754DE-11F0-45DF-8B78-DC1B43134038)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Bjorke
Sent: Wednesday, March 08, 2006 1:24 PM
To: Discussion of IronPython
Subject: [IronPython] Embedded - how to deal with the broad lack of __doc__ 
strings?

...any prefered clean way (other than tr:except every time I look for a
__doc__ string) or alternative source of __doc__-like info when
accessing .NET assemblies?

Thanks (especially if there's a super-obvious answer)
KB
NVIDIA
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to