<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi there,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Forwarding from numpy mailing list for visibility. This is related to the work we're doing on supporting Array API (ref: <a href="https://github.com/scikit-learn/scikit-learn/pull/22554">https://github.com/scikit-learn/scikit-learn/pull/22554</a>).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Cheers,</div><div class="gmail_default" style="font-size:small">Adrin<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Jelle Zijlstra</b> <span dir="auto"><<a href="mailto:jelle.zijlstra@gmail.com">jelle.zijlstra@gmail.com</a>></span><br>Date: Mon, Apr 25, 2022 at 2:02 PM<br>Subject: [Numpy-discussion] PEP 688: Making the buffer protocol accessible in Python<br>To: Discussion of Numerical Python <<a href="mailto:numpy-discussion@python.org">numpy-discussion@python.org</a>><br></div><br><br><div dir="ltr">I just posted <a href="https://peps.python.org/pep-0688/" target="_blank">https://peps.python.org/pep-0688/</a>, which proposes adding a types.Buffer type that will make it possible to check in Python code whether a type implements the buffer protocol.<div><br></div><div>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.</div><div><br></div><div><br></div></div>
_______________________________________________<br>
NumPy-Discussion mailing list -- <a href="mailto:numpy-discussion@python.org" target="_blank">numpy-discussion@python.org</a><br>
To unsubscribe send an email to <a href="mailto:numpy-discussion-leave@python.org" target="_blank">numpy-discussion-leave@python.org</a><br>
<a href="https://mail.python.org/mailman3/lists/numpy-discussion.python.org/" rel="noreferrer" target="_blank">https://mail.python.org/mailman3/lists/numpy-discussion.python.org/</a><br>
Member address: <a href="mailto:adrin.jalali@gmail.com" target="_blank">adrin.jalali@gmail.com</a><br>
</div></div>