[Numpy-discussion] Is this a small bug in numpydoc?

Pauli Virtanen pav+sp@iki...
Wed Apr 14 05:21:31 CDT 2010


Wed, 14 Apr 2010 01:17:37 -0700, Fernando Perez wrote:
[clip]
> Exception occurred:
>   File "/home/fperez/ipython/repo/trunk-lp/docs/sphinxext/numpydoc.py",
> line 71, in mangle_signature
>     'initializes x; see ' in pydoc.getdoc(obj.__init__)):
> AttributeError: class Bunch has no attribute '__init__' The full
> traceback has been saved in /tmp/sphinx-err-H1VlaY.log, if you want to
> report the issue to the developers.
> 
> so it seems indeed that accessing __init__ without checking it's there
> isn't a very good idea.
> 
> But I didn't write numpydoc and I'm tired, so I don't want to commit
> this without a second pair of eyes...

Yeah, it's a bug, I think.

-- 
Pauli Virtanen



More information about the NumPy-Discussion mailing list