[Python-Dev] Deprecating "instance method" class

Jeroen Demeyer J.Demeyer at UGent.be
Fri Apr 5 14:29:00 EDT 2019


On 2019-04-05 17:46, Guido van Rossum wrote:
> This API is doing no harm, it's not a maintenance
> burden

What if the following happens?

1. For some reason (possibly because of this thread), people discover 
instancemethod and start using it.

2. People realize that it's slow.

3. It needs to be made more efficient, causing new code bloat and 
maintenance burden.

> clearly *some* folks have a use for it.

I'm not convinced. I don't think that instancemethod is the right 
solution for functools.total_ordering for example.


Jeroen.


More information about the Python-Dev mailing list