classification
Title: Implement Py_TPFLAGS_METHOD_DESCRIPTOR
Type: enhancement Stage: patch review
Components: Interpreter Core Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Mark.Shannon, jdemeyer, petr.viktorin
Priority: normal Keywords: patch

Created on 2019-05-15 08:39 by jdemeyer, last changed 2019-05-15 11:12 by jdemeyer.

Pull Requests
URL Status Linked Edit
PR 13338 open jdemeyer, 2019-05-15 11:12
Messages (1)
msg342554 - (view) Author: Jeroen Demeyer (jdemeyer) * Date: 2019-05-15 08:39
The new flag Py_TPFLAGS_METHOD_DESCRIPTOR proposed in PEP 590 is meant for classes whose instances behave like unbound methods. In other words, it's meant for objects supporting the LOAD_METHOD optimization. There are two such classes in CPython: function and method_descriptor. But the goal is to enable more such classes.

This is independent from the rest of PEP 590 so let's implement it separately.
History
Date User Action Args
2019-05-15 11:12:55jdemeyersetkeywords: + patch
stage: patch review
pull_requests: + pull_request13250
2019-05-15 08:39:45jdemeyercreate