So, should we deprecate the instance method class? Jeroen. _______________________________________________ Python-Dev mailing list [email protected] https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
During my investigations related to low-level function/method classes, I
came across the "instance method" class. There is a C API for it:
https://docs.python.org/3.7/c-api/method.html
However, it's not used/exposed anywhere in CPython, except as
_testcapi.instancemethod (for testing its functionality)
This class was discussed at
https://mail.python.org/pipermail/python-3000/2007-December/011456.html
and implemented in https://bugs.python.org/issue1587
Reading that old thread, there are use cases presented related to
classic classes, wrapping Kogut
(http://kokogut.sourceforge.net/kogut.html) objects and Pyrex. But
classic classes no longer exist and the latter two use cases aren't
actually needed if you read the thread to the end. So there are no
surviving use cases from that thread.
Does anybody know actual use cases or any code in the wild using it? To
me, the fact that it's only exposed in the C API is a good sign that
it's not really useful.
- [Python-Dev] Deprecating "instance method" clas... Jeroen Demeyer
- Re: [Python-Dev] Deprecating "instance method&q... Christian Heimes
- Re: [Python-Dev] Deprecating "instance meth... Jeroen Demeyer
- Re: [Python-Dev] Deprecating "instance meth... Greg Ewing
- Re: [Python-Dev] Deprecating "instance ... Jeroen Demeyer
- Re: [Python-Dev] Deprecating "insta... Serhiy Storchaka
- Re: [Python-Dev] Deprecating "... Jeroen Demeyer
- Re: [Python-Dev] Deprecating &q... Serhiy Storchaka
- Re: [Python-Dev] Deprecatin... Jeroen Demeyer
- Re: [Python-Dev] Deprecatin... Guido van Rossum
- Re: [Python-Dev] Deprecatin... Christian Heimes