On Mon, Feb 28, 2011 at 3:32 AM, Simon King <simon.k...@uni-jena.de> wrote:
> On 28 Feb., 12:18, Simon King <simon.k...@uni-jena.de> wrote:
>> ...
>> I recall that it is impossible
>> to modifiy __doc__ in Cython - could this be a related problem?
>
> That could very well be: cached_method is defined in sage/misc/
> cachefunc.py, whereas coerce_binop is an alias for a cdef-class
> NamedBinopMethod from sage/structure/element.pyx
>
> So, IIRC, it would be impossible to assign __doc__ to an instance of
> coerce_binop.

If you add a "cdef object __doc__" member to that class, you should be
able to assign to it.

- Robert

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to