[IronPython] Using Epydoc with IronPython 2.6.1

Michael Foord fuzzyman at voidspace.org.uk
Wed Jun 9 18:56:40 CEST 2010


On 09/06/2010 16:55, Danny Fernandez wrote:
> Hi All,
>
> I am a newbie in IronPython world which by the way rocks. I tried 
> posting yesterday so I am not sure what happened so sorry if there is 
> a double post.
> I am having trouble trying to use epydoc. I have IronPython 2.6.1 for 
> .NET 2.0 on my 32-bit Windows XP box. I am not sure if I have set it 
> up correctly it is probably me not setting up things correctly.
>
> I installed the epydoc source in c:\python\epydoc and set IRONPATHHOME 
> is set to C:\python\epydoc\. I am following an example of using epydoc 
> from their website and added the debug arg to get more information so 
> I cd in C:\python\epydoc\scripts and executed the following
>
> ipy epydoc.py --html --debug sys -o sys_docs
>
> Traceback (most recent call last):-] Building documentation: sys
>   File "epydoc.py", line 16, in <module>
>   File "C:\python\epydoc\epydoc\cli.py", line 965, in cli
>   File "C:\python\epydoc\epydoc\docbuilder.py", line 454, in 
> _get_docs_from_pyname
>   File "C:\python\epydoc\epydoc\docparser.py", line 209, in parse_docs
>   File "C:\python\epydoc\epydoc\docintrospecter.py", line 131, in 
> introspect_docs
>   File "C:\python\epydoc\epydoc\docintrospecter.py", line 275, in 
> introspect_module
>   File "C:\python\epydoc\epydoc\docintrospecter.py", line 131, in 
> introspect_docs
>   File "C:\python\epydoc\epydoc\docintrospecter.py", line 392, in 
> introspect_class
> TypeError: instancemethod.__cmp__(x,y) requires y to be a 
> 'instancemethod', not a NoneType
>
>
> I tried find information on using IronPython with epydoc but with no 
> luck. I got pydoc to work but it pulled documentation for the clr 
> module which I use of course which took most of the documentation for 
> my module. I thought I can try epydoc with the parse only feature. I 
> appeciate any feedback.


Hmm... no idea on the specific problem - but this *may* be related:

IronPython 2.6.1:

 >>> class X(object):
...  def f(s): pass
...
 >>>
 >>> a = X()
 >>> a.f.__cmp__
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
AttributeError: 'instancemethod' object has no attribute '__cmp__'

CPython 2.6.5:

 >>> class X(object):
...  def f(s): pass
...
 >>> a = X()
 >>> a.f.__cmp__
<method-wrapper '__cmp__' of instancemethod object at 0x01858DA0>


Michael
>
> Thanks
>
> Danny
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>    


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100609/7aa800ae/attachment.html>


More information about the Ironpython-users mailing list