Hi Joannah,

On Thu, 21 Oct 2021 13:00:11 -0300
Joannah Nanjekye <nanjekyejoan...@gmail.com> 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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/O76HP4RKM3VGMCF6YNLRHD26MZPDHEWZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to