pep3118 Questions

0

I am interested in passing binary data between python, numpy, and cython using the buffer protocol. Looking at PEP 3118, there appear to be some additions to the struct string-syntax that add suppo...
Leannaleanne asked 4/5, 2019 at 0:29

1

I'm working in with a C library that repeatedly calls a user supplied function pointer to get more data. I'd like to write a Cython wrapper in such a way that the Python implementation of that call...
Bellina asked 20/4, 2013 at 17:0

2

Solved

The python documentation on array clearly states that the array conforms to the buffer interface. It even suggest not using the buffer_info() method. But when I try to get a Py_Buffer from C/C++ co...
Morie asked 2/2, 2011 at 17:43

1

I am in the process of extending the classes in our library (which supports Python 2.7) to support PEP 3118, which has been back-ported to 2.7. From the documentation, I need to initialize the tp...
Envelopment asked 7/10, 2013 at 11:29

1

Solved

I am quite confused with the term 'buffer Interface' in python. what does it mean to say that " A python object exposing its underlying memory structure' can someone explain with an example. Thanks...
Greensboro asked 5/7, 2013 at 18:48

1

Solved

This question is related to a previous question I asked. Namely this one if anyone is interested. Basically, what I want to do is to expose a C array to Python using a Py_buffer wrapped in a memory...
Chisholm asked 6/3, 2013 at 10:5

2

Solved

I'm getting the following warning message when I try to use a ctypes array as a numpy array: Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "cop...
Michal asked 10/2, 2011 at 23:51

1

Solved

I am trying to expose a buffer of image pixel information (32 bit RGBA) through the Python 3.x buffer interface. After quite a bit of playing around, I was able to get this working like so: int Im...
Murrell asked 19/2, 2010 at 14:36
1

© 2022 - 2024 — McMap. All rights reserved.