Re: Unable to build pydoc for subclasses of PyDO

Jacob Smullyan <[email protected]> Wed, 6 Jul 2005 00:32:09 -0400
Newsgroups gmane.comp.web.skunkweb
Message-ID <[email protected]>
On Wed, Jul 06, 2005 at 01:38:20PM +1000, Adam Ward wrote:
> I have been unable to generate pydoc for any of my pydo data classes.
> Upon generating docs, I get the following error(s):

[snip]

The epydoc error I haven't looked into yet (I will soon), but the
pydoc one is a simple fix.  The problem can be reproduced like so:

  class A(PyDO):
	fields=('x',)

  getattr(A, 'x')

The getattr call will try to invoke the field descriptor with None for
the obj parameter, not the dict it expects.  I'm checking in a test
for None, and pydoc then will work; corresponding test in test_fields.

Thanks for the recent reports, here and on berlios.

js

-- 
Jacob Smullyan
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCy17JuqamFyFXXLIRAi4uAKCupUAcIoLzmHlztY9l87KLJ4qJzACdHFfJ
uZT3zYZ1pkZNh583l3o1/ms=
=ik/7
-----END PGP SIGNATURE-----