[Python-Dev] Re: PEP 3118 C APIs

2021年10月29日 08:56:27 -0700

Hi Joannah,
On 2021年10月21日 13:00:11 -0300
Joannah Nanjekye <[email protected]> wrote:
> Last year I opened the following issues, to implement
> int PyObject_CopyToObject() and PyObject *PyObject_GetMemoryView(PyObject
> *obj).
> 
> They were meant to be as part of PEP 3118, I wonder if they are worth an
> effort now.
> 
> https://bugs.python.org/issue39835
> https://bugs.python.org/issue39836
1) PyObject_GetMemoryView: would it do something different than
PyMemoryView_FromObject()?
2) PyObject_CopyToObject: I admit I don't really understand the use
case. Besides the fact that the naming is confusing ("object copy to
object"?), it seems either PyBuffer_FromContiguous() or
PyBuffer_ToContiguous() should help implement similar functionality.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/O76HP4RKM3VGMCF6YNLRHD26MZPDHEWZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to