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 <jelle.zijls...@gmail.com> 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 <numpy-discuss...@python.org> 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 -- numpy-discuss...@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: adrin.jal...@gmail.com
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn