Message408089
Thanks for the investigation. I didn't know about C99 Standard 6.7.8.21. That's a useful and sensible extension to the language.
In my opinion it is neither useful to extend the Py_buffer struct with a version tag nor to force users to allocate the struct on the heap. The current design has worked for over 13 years. Any deviation from the established design poses a risk to break 3rd party software.
I could be convinced to add PyBuffer_New() and PyBuffer_Free() as additional feature, but their use should be optional. The function were part of my first PR GH-29035. |
|
| Date |
User |
Action |
Args |
| 2021-12-09 09:14:00 | christian.heimes | set | recipients:
+ christian.heimes, pitrou, vstinner, alex, petr.viktorin, skrah, serhiy.storchaka, erlendaasland |
| 2021-12-09 09:14:00 | christian.heimes | set | messageid: <1639041240.21.0.742057147006.issue45459@roundup.psfhosted.org> |
| 2021-12-09 09:14:00 | christian.heimes | link | issue45459 messages |
| 2021-12-09 09:14:00 | christian.heimes | create | |
|