Hi there,

Forwarding from numpy mailing list for visibility. This is related to the
work we're doing on supporting Array API (ref:
https://github.com/scikit-learn/scikit-learn/pull/22554).

If we go down the path of having different execution paths based on the
input data type, knowing if the given type implements the buffer protocol
might be relevant.

Cheers,
Adrin

---------- Forwarded message ---------
From: Jelle Zijlstra <[email protected]>
Date: Mon, Apr 25, 2022 at 2:02 PM
Subject: [Numpy-discussion] PEP 688: Making the buffer protocol accessible
in Python
To: Discussion of Numerical Python <[email protected]>


I just posted https://peps.python.org/pep-0688/, which proposes adding a
types.Buffer type that will make it possible to check in Python code
whether a type implements the buffer protocol.

I'm reaching out to the numpy community because numpy was an important
driver for creating the buffer protocol. I'd be happy to hear any feedback
or possible use cases for the PEP.


_______________________________________________
NumPy-Discussion mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: [email protected]
_______________________________________________
scikit-learn mailing list
[email protected]
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to