[Python-Dev] Deprecating "instance method" class

Serhiy Storchaka storchaka at gmail.com
Fri Apr 5 08:10:54 EDT 2019


05.04.19 09:07, Jeroen Demeyer пише:
> On 2019-04-05 00:57, Greg Ewing wrote:
>> If it's designed for use by things outside of CPython, how
>> can you be sure nothing is using it?
> 
> Of course I'm not sure. However:
> 
> 1. So far, nobody in this thread knows of any code using it.
> 
> 2. So far, nobody in this thread knows any use case for it.
> 
> And if we end up deprecating and it was a mistake, we can easily revert 
> the deprecation.

I have a use case. I did not know this before, but it can be used to 
implement accelerated versions of separate methods instead of the whole 
class. I'm going to use it to further optimize total_ordering.

Thanks Josh Rosenberg for the tip.



More information about the Python-Dev mailing list