[pypy-dev] ctypes create_string_buffer

Kenny Lasse Hoff Levinsen kennylevinsen at gmail.com
Fri Jan 10 14:52:11 CET 2014


ctypes is not nice to use. If you need C-bindings, please look at CFFI.

Sent from my iPhone

> On 09/01/2014, at 14.30, HY <lightdarkadmin at 163.com> wrote:
> 
>  import ctypes as C
> s1= "0"* 1024* 1024* 10
> # mem engross add 10M bytes
> b1= C.create_string_buffer(s1 ) 
> # CPU 1 core 100% and mem engross add 300M bytes ? 
> I don't know!
> please talk me, thanks very match.... 
> 
> I'm chinese, english is not good, sorry!
> 
> 
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20140110/913126fe/attachment.html>


More information about the pypy-dev mailing list