Exposing buffer interface for non-extension types?

Antoine Pitrou solipsis at pitrou.net
Wed Jul 21 05:58:41 EDT 2010


On Tue, 20 Jul 2010 18:09:22 -0400
Ken Watford <kwatford+python at gmail.com> wrote:
> Is there any way to expose the PEP 3118 buffer interface for objects
> that aren't extension types?
> 
> Currently, I can expose the NumPy array interface (using either
> __array_interface__ or __array_struct__) for any class, extension or
> otherwise. But I can't find any reference to python-side interfacing
> for PEP 3118.

There is none, but feel free to make a proposal on python-ideas if you
think there's an use case for it.

Regards

Antoine.





More information about the Python-list mailing list