Changes between Version 7 and Version 8 of Ticket #22611


Ignore:
Timestamp:
03/20/17 13:20:42 (5 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22611 – Description

    v7 v8  
    22
    33I tried various ways of implementing this and I found several Cython bugs along the way. The current solution is not the cleanest, but it works in all cases (Cython and Python, extension types and normal classes).
     4
     5In the cases where `_sage_doc_` was implemented for a base class, this patch requires adding `@InstanceDoc` to every subclass. This is because Python never inherits the `__doc__` attribute. There is a way around this using a metaclass, but I avoided that because metaclasses have their own problems (see #21681).