On Wed, Mar 18, 2020 at 10:58 PM Michael Jung <micj...@uni-potsdam.de>
wrote:

> Damn it. Then I another question: Would it cause a slow-down if I
> overwrite the method with something like
>
> def my_method(self):
>     r"""
>     New Documentation
>     """
>     Mother.my_method(self)
>
>
This will take small amount of time (on the order of 150ns), but that time
will probably be dwarfed by whatever Mother.my_method is doing.  I don't
see an alternative if you want to have different documentation.
David

Best,
> Michael
> Am 19.03.2020 um 00:41 schrieb Michael Orlitzky:
>
> On 3/18/20 5:04 PM, Michael Jung wrote:
>
> Dear developers,
> to reduce redundancies in the SageManifolds code, we plan to inherit
> most methods and classes from a (mathematically) more general setup.
> Still, the current documentation is mandatory. Is it possible to
> establish new documentations for inherited methods?
>
> I tried, and I don't think so.
>
> If you don't override the method, then the subclass method will
> literally point to the superclass method, implying that they both have
> to have the same __doc__.
>
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>  Virenfrei.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_4370060584590146904_m_5189638189139830647_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/39892653-0f84-5c96-a12f-ac378f8e535b%40uni-potsdam.de
> <https://groups.google.com/d/msgid/sage-devel/39892653-0f84-5c96-a12f-ac378f8e535b%40uni-potsdam.de?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAChs6_kbivVB03vy7GDzvt6CgdVyi8m715ECkqtYR8D7JVsFxA%40mail.gmail.com.

Reply via email to