Message380621
I concur with Mark.
If you want to work only with non-borrowed references, use PySequence_GetItem() and PySequence_SetItem(). It has a cost: it is slower and needs checking errors. If you need more performant solution and binary compatibility across versions, use PyTuple_GetItem() and PyTuple_SetItem() (borrowed references is the part of optimization). If you don't need binary compatibility, but need speed, use macros.
And no need to expand the C API. It is already large enough. |
|
Date |
User |
Action |
Args |
2020-11-09 22:22:45 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ronaldoussoren, vstinner, Mark.Shannon, shihai1991 |
2020-11-09 22:22:45 | serhiy.storchaka | set | messageid: <1604960565.22.0.414413175441.issue42294@roundup.psfhosted.org> |
2020-11-09 22:22:45 | serhiy.storchaka | link | issue42294 messages |
2020-11-09 22:22:45 | serhiy.storchaka | create | |
|