On Tue, Jul 27, 2010 at 9:24 AM, Simon King <[email protected]> wrote:
> Hi!
>
> I have a Cython class COCH that inherits from RingElement. I define a
> method __pow__ for it, and it gets some doc string (which means
> tests).
>
> I thought that such method would be a class_method or whatever.
> Instead, I get
> sage: COCH.__pow__
> <slot wrapper '__pow__' of 'pGroupCohomology.cochain.COCH' objects>
> sage: type(COCH.__pow__)
> <type 'wrapper_descriptor'>
>
> And what's worse, I seem to be unable to retrieve the documentation!
>  sage: COCH.__pow__.__doc__
>  'x.__pow__(y[, z]) <==> pow(x, y[, z])'
> is not the documentation that I provided.
>
> So, how can I get my docstring back?

This is actually very related to

http://groups.google.com/group/sage-devel/browse_thread/thread/c97d36d23131f4c5/bfa082a5ef5f153a

but unfortunately, there's not a good answer (yet?).

- Robert

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to