Message397872
Py_TPFLAGS_HAVE_AM_SEND is unnecessary and I'd like to remove it.
It is not possible for type objects to have a different layout than the interpreter:
- extensions using the regular ABI must be recompiled for each feature version of Python
- extensions using the stable ABI can only create types dynamically
Or is there a different reason for Py_TPFLAGS_HAVE_AM_SEND? Checking it may be faster than ((Py_TYPE(x)->tp_as_async != NULL) && (Py_TYPE(x)->tp_as_async->am_send != NULL)), but I don't think the speedup is relevant.
See bpo-42747 |
|
Date |
User |
Action |
Args |
2021-07-20 14:09:33 | petr.viktorin | set | recipients:
+ petr.viktorin, asvetlov, yselivanov, miss-islington, v2m, iritkatriel, martmists |
2021-07-20 14:09:33 | petr.viktorin | set | messageid: <1626790173.0.0.226788254265.issue42085@roundup.psfhosted.org> |
2021-07-20 14:09:32 | petr.viktorin | link | issue42085 messages |
2021-07-20 14:09:32 | petr.viktorin | create | |
|