[pypy-issue] [issue1354] from_buffer is not supported in ctypes

Simon Sapin tracker at bugs.pypy.org
Thu Dec 27 21:56:23 CET 2012

New submission from Simon Sapin <simon.sapin at kozea.fr>:

Hi. The following code gives a c_char on CPython but raises on PyPy 2.0.0-beta1:

>>>> import ctypes
>>>> array = bytearray(10)
>>>> ctypes.c_char.from_buffer(array)
AttributeError: type object 'c_char' has no attribute 'from_buffer'

Apparently from_buffer and from_buffer_copy are not implemented yet.

messages: 5106
nosy: SimonSapin, pypy-issue
priority: bug
status: unread
title: from_buffer is not supported in ctypes

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list