Opened 5 years ago

Last modified 5 years ago

#22611 closed enhancement

Replace _sage_doc_ by a __doc__ descriptor — at Version 1

Reported by: jdemeyer Owned by:
Priority: major Milestone: sage-7.6
Component: documentation Keywords: days85
Cc: hivert, nthiery Merged in:
Authors: Jeroen Demeyer Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

The method _sage_doc_ is used to have custom documentation for instances of a class. Such a use case makes sense, but it should be implemented as the __doc__ attribute instead of the Sage-specific _sage_doc_.

This is easy for Python classes, but it might be problematic for cdef classes.

Unfortunately, this hits some Cython bugs involving @decorators.

Change History (1)

comment:1 Changed 5 years ago by jdemeyer

  • Description modified (diff)
  • Keywords days85 added
Note: See TracTickets for help on using tickets.