What about

my_method = Mother.my_method
my_method.__doc__ = "new docstring"


Does that do what you want?


On Wednesday, March 18, 2020 at 9:22:31 PM UTC-7, David Roe wrote:
>
>
>
> On Wed, Mar 18, 2020 at 10:58 PM Michael Jung <mic...@uni-potsdam.de 
> <javascript:>> 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>
>>  
>> <#CAChs6_kbivVB03vy7GDzvt6CgdVyi8m715ECkqtYR8D7JVsFxA@mail.gmail.com_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-...@googlegroups.com <javascript:>.
>> 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/377a9a60-4e72-4fb6-8063-cf45bdb1f9ab%40googlegroups.com.

Reply via email to